Base fixtures for using Mockito mocks with pytest. Integrates the Mockito library (a spy/mock framework) into pytest by providing fixtures that handle setup and teardown of mocks. Current version is 0.0.6.post1, with a slow release cadence.
pip install pytest-mockitoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic test using the mocker fixture to reset mockito state automatically.
Add mocker as a parameter to your test function: def test_foo(mocker):
Use def test(mocker): ... and let pytest inject the fixture.
Pin mockito to version compatible with this plugin, or consider pytest-mock or unittest.mock.