1
0
Fork 0
mirror of synced 2024-07-01 12:30:21 +12:00
This commit is contained in:
Serene-Arc 2021-03-25 21:51:31 +10:00 committed by Ali Parlakci
parent 0007912ad5
commit 79105f9f84

View file

@ -15,7 +15,7 @@ from bulkredditdownloader.site_downloaders.direct import Direct
('https://giant.gfycat.com/DazzlingSilkyIguana.mp4', '808941b48fc1e28713d36dd7ed9dc648'), ('https://giant.gfycat.com/DazzlingSilkyIguana.mp4', '808941b48fc1e28713d36dd7ed9dc648'),
)) ))
def test_download_resource(test_url: str, expected_hash: str): def test_download_resource(test_url: str, expected_hash: str):
mock_submission = Mock mock_submission = Mock()
mock_submission.url = test_url mock_submission.url = test_url
test_site = Direct(mock_submission) test_site = Direct(mock_submission)
resources = test_site.find_resources() resources = test_site.find_resources()