From 5e81160e5f02a4d791cbd2dd71dd83aecd0a0eec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ali=20Parlak=C3=A7=C4=B1?= Date: Sat, 17 Apr 2021 14:07:20 +0300 Subject: [PATCH] test_vreddit: remove flaky test (#272) --- bdfr/tests/site_downloaders/test_vreddit.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bdfr/tests/site_downloaders/test_vreddit.py b/bdfr/tests/site_downloaders/test_vreddit.py index bae34a3..3b663c2 100644 --- a/bdfr/tests/site_downloaders/test_vreddit.py +++ b/bdfr/tests/site_downloaders/test_vreddit.py @@ -10,14 +10,14 @@ from bdfr.site_downloaders.vreddit import VReddit @pytest.mark.online @pytest.mark.reddit -@pytest.mark.parametrize(('test_submission_id', 'expected_hash'), ( - ('lu8l8g', 'c5f8c0ba2ff6e37a14e267a787696cc6'), +@pytest.mark.parametrize(('test_submission_id'), ( + ('lu8l8g'), )) -def test_find_resources(test_submission_id: str, expected_hash: str, reddit_instance: praw.Reddit): +def test_find_resources(test_submission_id: str, reddit_instance: praw.Reddit): test_submission = reddit_instance.submission(id=test_submission_id) downloader = VReddit(test_submission) resources = downloader.find_resources() assert len(resources) == 1 assert isinstance(resources[0], Resource) resources[0].download(120) - assert resources[0].hash.hexdigest() == expected_hash + assert resources[0].content is not None