diff --git a/superscore/tests/conftest.py b/superscore/tests/conftest.py index d30ff04..70c9b69 100644 --- a/superscore/tests/conftest.py +++ b/superscore/tests/conftest.py @@ -703,12 +703,8 @@ def dummy_cl() -> ControlLayer: @pytest.fixture(scope='function') def mock_backend() -> _Backend: - bk = _Backend() - bk.delete_entry = MagicMock() - bk.save_entry = MagicMock() - bk.get_entry = MagicMock() - bk.search = MagicMock() - bk.update_entry = MagicMock() + mock_bk = MagicMock(spec=_Backend) + return mock_bk class MockTaskStatus: