Skip to content

Commit 2fee8fd

Browse files
committed
Fix artifact test
1 parent 074d2f0 commit 2fee8fd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/unit/test_file_artifact.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,8 @@ def test_file_artifact_creation_offline_updated(offline_cache_setup, caplog, sna
158158
out_f.write("File changed!")
159159

160160
if not snapshot:
161-
with caplog.at_level(logging.ERROR):
161+
with pytest.raises(RuntimeError, match="The SHA256 you specified did not match the calculated checksum."):
162162
_id_mapping = sender(pathlib.Path(offline_cache_setup.name), 1, 10, throw_exceptions=True)
163-
assert "The SHA256 you specified did not match the calculated checksum." in caplog.text
164163
return
165164
else:
166165
_id_mapping = sender(pathlib.Path(offline_cache_setup.name), 1, 10, throw_exceptions=True)

0 commit comments

Comments
 (0)