1
0
Fork 0
mirror of synced 2024-06-27 02:20:45 +12:00

Update for other failing tests

Seems there was some overlap in test names that was contributing to the test errors. Updated hash and test name.
This commit is contained in:
OMEGARAZER 2022-11-08 15:37:21 -05:00
parent 77711c243a
commit f3c7d796aa
No known key found for this signature in database
GPG key ID: D89925310D306E35

View file

@ -13,10 +13,9 @@ from bdfr.site_downloaders.pornhub import PornHub
@pytest.mark.online
@pytest.mark.slow
@pytest.mark.parametrize(('test_url', 'expected_hash'), (
('https://www.pornhub.com/view_video.php?viewkey=ph6074c59798497', 'd9b99e4ebecf2d8d67efe5e70d2acf8a'),
('https://www.pornhub.com/view_video.php?viewkey=ph5ede121f0d3f8', ''),
('https://www.pornhub.com/view_video.php?viewkey=ph6074c59798497', 'ad52a0f4fce8f99df0abed17de1d04c7'),
))
def test_find_resources_good(test_url: str, expected_hash: str):
def test_hash_resources_good(test_url: str, expected_hash: str):
test_submission = MagicMock()
test_submission.url = test_url
downloader = PornHub(test_submission)