The pytest_mock.MockerFixture.MagicMock is a class within the pytest_mock package in Python. It is used as a mock object that allows developers to simulate the behavior of a real object, such as a function or method, during testing. This MagicMock class has several built-in features and methods that enable developers to set expectations, define return values, and specify how the object should behave when it is called. Overall, the pytest_mock.MockerFixture.MagicMock is a powerful tool for creating mock objects and asserting their behavior in unit tests.
Python MockerFixture.MagicMock - 30 examples found. These are the top rated real world Python examples of pytest_mock.MockerFixture.MagicMock extracted from open source projects. You can rate examples to help us improve the quality of examples.