Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
replaceafill committed Jun 6, 2024
1 parent c8f996e commit d7f6982
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_fixity.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ def test_scanall_handles_exceptions(_get, capsys):


@mock.patch("requests.get")
@mock.patch("fixity.fixity.main.session", return_value=SESSION)
def test_main(_session, _get, monkeypatch, foobar):
@mock.patch.object(fixity, "Session", lambda: SESSION)
def test_main(_get, monkeypatch, foobar):
_get.side_effect = foobar
monkeypatch.setenv("STORAGE_SERVICE_URL", STORAGE_SERVICE_URL)
monkeypatch.setenv("STORAGE_SERVICE_USER", STORAGE_SERVICE_USER)
Expand Down

0 comments on commit d7f6982

Please sign in to comment.