Skip to content

Commit

Permalink
TST: let MagicMock truly do magic for mock_backend
Browse files Browse the repository at this point in the history
  • Loading branch information
tangkong committed Jul 26, 2024
1 parent 602d7ee commit dd95fc7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions superscore/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit dd95fc7

Please sign in to comment.