Use config value to specify max wait time

This commit is contained in:
Serene-Arc
2021-04-12 16:47:04 +10:00
committed by Ali Parlakci
parent 0c960a4d0c
commit aa8032e95f
13 changed files with 19 additions and 17 deletions

View File

@@ -28,5 +28,5 @@ def test_resource_get_extension(test_url: str, expected: str):
))
def test_download_online_resource(test_url: str, expected_hash: str):
test_resource = Resource(MagicMock(), test_url)
test_resource.download()
test_resource.download(120)
assert test_resource.hash.hexdigest() == expected_hash