Add Streamable to download factory test
This commit is contained in:
@@ -16,6 +16,7 @@ from bdfr.site_downloaders.redgifs import Redgifs
|
|||||||
from bdfr.site_downloaders.self_post import SelfPost
|
from bdfr.site_downloaders.self_post import SelfPost
|
||||||
from bdfr.site_downloaders.vreddit import VReddit
|
from bdfr.site_downloaders.vreddit import VReddit
|
||||||
from bdfr.site_downloaders.youtube import Youtube
|
from bdfr.site_downloaders.youtube import Youtube
|
||||||
|
from bdfr.site_downloaders.streamable import Streamable
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(('test_submission_url', 'expected_class'), (
|
@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://i.imgur.com/3SKrQfK.jpg?1', Direct),
|
||||||
('https://dynasty-scans.com/system/images_images/000/017/819/original/80215103_p0.png?1612232781', 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://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):
|
def test_factory_lever_good(test_submission_url: str, expected_class: BaseDownloader, reddit_instance: praw.Reddit):
|
||||||
result = DownloadFactory.pull_lever(test_submission_url)
|
result = DownloadFactory.pull_lever(test_submission_url)
|
||||||
|
|||||||
Reference in New Issue
Block a user