Skip to content

Commit

Permalink
Fix the suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhwaniartefact committed Jun 6, 2024
1 parent dc292c2 commit 5a1a7ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_fixity.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def test_main_scan(_get, monkeypatch, mock_check_fixity):
],
)
@mock.patch.object(fixity, "Session", lambda: SESSION)
def test_main_scanall_handles_exceptions(_get, monkeypatch, capsys):
def test_main_handles_exceptions_if_scanall(_get, monkeypatch, capsys):
monkeypatch.setenv("STORAGE_SERVICE_URL", STORAGE_SERVICE_URL)
monkeypatch.setenv("STORAGE_SERVICE_USER", STORAGE_SERVICE_USER)
monkeypatch.setenv("STORAGE_SERVICE_KEY", STORAGE_SERVICE_KEY)
Expand All @@ -450,6 +450,6 @@ def test_main_scanall_handles_exceptions(_get, monkeypatch, capsys):

captured = capsys.readouterr()
assert (
"Internal error encountered while scanning AIP 77adb748-8d9c-47ec-b593-53465749ce0e (StorageServiceError)\n"
== captured.out
"Internal error encountered while scanning AIP 77adb748-8d9c-47ec-b593-53465749ce0e (StorageServiceError)"
== captured.out.strip()
)

0 comments on commit 5a1a7ab

Please sign in to comment.