# conftest.py import pytest @pytest.fixture def unstub(): """Ensure calls patched by mockito are cleared after each test""" from mockito import unstub yield unstub()