1
0
Fork 0
mirror of synced 2024-05-29 16:40:06 +12:00

Add Streamable to download factory test

This commit is contained in:
Daniel Clowry 2021-04-29 20:21:25 +10:00 committed by Serene
parent 600a85cbc8
commit 310cc123df

View file

@ -16,6 +16,7 @@ from bdfr.site_downloaders.redgifs import Redgifs
from bdfr.site_downloaders.self_post import SelfPost
from bdfr.site_downloaders.vreddit import VReddit
from bdfr.site_downloaders.youtube import Youtube
from bdfr.site_downloaders.streamable import Streamable
@pytest.mark.parametrize(('test_submission_url', 'expected_class'), (
@ -40,6 +41,7 @@ from bdfr.site_downloaders.youtube import Youtube
('https://i.imgur.com/3SKrQfK.jpg?1', Direct),
('https://dynasty-scans.com/system/images_images/000/017/819/original/80215103_p0.png?1612232781', Direct),
('https://m.imgur.com/a/py3RW0j', Imgur),
('https://streamable.com/dt46y', Streamable)
))
def test_factory_lever_good(test_submission_url: str, expected_class: BaseDownloader, reddit_instance: praw.Reddit):
result = DownloadFactory.pull_lever(test_submission_url)