From bd802df38c13c3ebec0ff6f3a72ef3da26403c29 Mon Sep 17 00:00:00 2001 From: OMEGARAZER <869111+OMEGARAZER@users.noreply.github.com> Date: Wed, 10 Nov 2021 15:39:12 -0500 Subject: [PATCH] Update test_imgur.py Adding test for .giff/.gift imgur extension --- tests/site_downloaders/test_imgur.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/site_downloaders/test_imgur.py b/tests/site_downloaders/test_imgur.py index 4c754ec..85b84c6 100644 --- a/tests/site_downloaders/test_imgur.py +++ b/tests/site_downloaders/test_imgur.py @@ -150,6 +150,14 @@ def test_imgur_extension_validation_bad(test_extension: str): 'https://i.imgur.com/uTvtQsw.gifv', ('46c86533aa60fc0e09f2a758513e3ac2',), ), + ( + 'https://i.imgur.com/OGeVuAe.giff', + ('77389679084d381336f168538793f218',) + ) + ( + 'https://i.imgur.com/OGeVuAe.gift', + ('77389679084d381336f168538793f218',) + ) )) def test_find_resources(test_url: str, expected_hashes: list[str]): mock_download = Mock()