1
0
Fork 0
mirror of synced 2024-06-26 18:10:26 +12:00

Add test for resource

This commit is contained in:
Serene-Arc 2021-03-10 14:09:27 +10:00 committed by Ali Parlakci
parent 25f70463f3
commit eca5da7f46

View file

@ -13,6 +13,7 @@ from bulkredditdownloader.resource import Resource
('http://www.random.com/resource.png', '.png'),
('https://www.resource.com/test/example.jpg', '.jpg'),
('hard.png.mp4', '.mp4'),
('https://preview.redd.it/7zkmr1wqqih61.png?width=237&format=png&auto=webp&s=19de214e634cbcad99', '.png'),
))
def test_resource_get_extension(test_url: str, expected: str):
test_resource = Resource(None, test_url)