Update out-of-date tests
This commit is contained in:
parent
2e879949f5
commit
5d86c2d400
1 changed files with 2 additions and 2 deletions
|
@ -312,7 +312,7 @@ def test_download_submission_file_exists(
|
||||||
folder_contents = list(tmp_path.iterdir())
|
folder_contents = list(tmp_path.iterdir())
|
||||||
output = capsys.readouterr()
|
output = capsys.readouterr()
|
||||||
assert len(folder_contents) == 1
|
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
|
@pytest.mark.online
|
||||||
|
@ -335,7 +335,7 @@ def test_download_submission_hash_exists(
|
||||||
folder_contents = list(tmp_path.iterdir())
|
folder_contents = list(tmp_path.iterdir())
|
||||||
output = capsys.readouterr()
|
output = capsys.readouterr()
|
||||||
assert len(folder_contents) == 0
|
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'), (
|
@pytest.mark.parametrize(('test_name', 'expected'), (
|
||||||
|
|
Loading…
Reference in a new issue