1
0
Fork 0
mirror of synced 2024-06-26 18:10:26 +12:00

Update out-of-date tests

This commit is contained in:
Serene-Arc 2021-03-30 09:05:09 +10:00 committed by Ali Parlakci
parent 2e879949f5
commit 5d86c2d400

View file

@ -312,7 +312,7 @@ def test_download_submission_file_exists(
folder_contents = list(tmp_path.iterdir())
output = capsys.readouterr()
assert len(folder_contents) == 1
assert 'File already exists: ' in output.out
assert 'Arneeman_Metagaming isn\'t always a bad thing_m1hqw6.png already exists' in output.out
@pytest.mark.online
@ -335,7 +335,7 @@ def test_download_submission_hash_exists(
folder_contents = list(tmp_path.iterdir())
output = capsys.readouterr()
assert len(folder_contents) == 0
assert re.search(r'Resource from .*? downloaded elsewhere', output.out)
assert re.search(r'Resource hash .*? downloaded elsewhere', output.out)
@pytest.mark.parametrize(('test_name', 'expected'), (