Add test for resource
This commit is contained in:
@@ -13,6 +13,7 @@ from bulkredditdownloader.resource import Resource
|
|||||||
('http://www.random.com/resource.png', '.png'),
|
('http://www.random.com/resource.png', '.png'),
|
||||||
('https://www.resource.com/test/example.jpg', '.jpg'),
|
('https://www.resource.com/test/example.jpg', '.jpg'),
|
||||||
('hard.png.mp4', '.mp4'),
|
('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):
|
def test_resource_get_extension(test_url: str, expected: str):
|
||||||
test_resource = Resource(None, test_url)
|
test_resource = Resource(None, test_url)
|
||||||
|
|||||||
Reference in New Issue
Block a user