Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in python-mock

Python mock to create a fake object return a dictionary when any of its attributes are used

How to mock a Python class during testing for runtime typing checks?

How to redefine MagicMock __str__ method?

How to determine if method is called using Python mock but does not replace the function body?

python python-mock

Python how to reuse a Mock to avoid writing mock.patch multiple times?

Mocking a RelatedManager in Django 2

Mocking out a call within a celery task

Does python's `unittest.mock.patch` mutate global state?

Python mock library: Is there any way to get corresponding return values from magic mock calls?

Avoid executing __init__ of mocked class

Patch method only in one module

Django - how to change FileField upload_to path during testing

Mocking a module imported inside of a function

Strict mock in python

Python: How to mock class attribute initializer function

How can I mock an external function within a method in a class

How can I use mock_open with a Python UnitTest decorator?

How to mock objects methods return value