Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New posts in python-mock

Python mock function with only specific argument

How to throw exception from mocked instance's method?

Is it possible to query a Python mock object for the return values of its calls?

Is there any difference between using mock.patch.object with wraps vs side_effect?

Patching one occurrence on the function call in Python's Mock

How to mock class attribute instantiated in __init__?

Subclassing MagicMock in python

What is difference between python mock and magic mock? [duplicate]

Mocking chained calls in Python

Why have both a return-value and a side-effect when raising an error for a mock?

python-mock

Patch: AssertionError: Expected '...' to have been called once. Called 0 times

How do I attach the return value of mock.patch(...).start() to a parent mock?

python unittest : Assert the sequence of method calls in unit test [duplicate]

Django mocks not working as expected

Exception not called when using side_effect with mock

python mocking python-mock