1
0
Fork 0
mirror of synced 2024-06-22 04:00:20 +12:00

Update failing tests

This commit is contained in:
Serene-Arc 2021-05-23 12:40:27 +10:00 committed by Serene
parent a511c706c7
commit 4c42469c0c

View file

@ -1,8 +1,8 @@
#!/usr/bin/env python3
# coding=utf-8
import re
import os
import re
from pathlib import Path
from unittest.mock import MagicMock
@ -111,7 +111,7 @@ def test_file_creation_date(
def test_search_existing_files():
results = RedditDownloader.scan_existing_files(Path('.'))
assert len(results.keys()) >= 40
assert len(results.keys()) != 0
@pytest.mark.online
@ -163,7 +163,8 @@ def test_download_submission_file_exists(
folder_contents = list(tmp_path.iterdir())
output = capsys.readouterr()
assert len(folder_contents) == 1
assert 'Arneeman_Metagaming isn\'t always a bad thing_m1hqw6.png already exists' in output.out
assert 'Arneeman_Metagaming isn\'t always a bad thing_m1hqw6.png'\
' from submission m1hqw6 already exists' in output.out
@pytest.mark.online