diff options
author | morpheus65535 <[email protected]> | 2024-09-20 07:43:20 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2024-09-20 07:43:20 -0400 |
commit | 6364659c3b3e80dff701a9ce4bad785f2d181932 (patch) | |
tree | 7d35e7bfb20567cbbbbbb35e324fed59f8dd94c5 /tests | |
parent | 90b44802dc3be1429b5d41eb4ad4603c80f1ce80 (diff) | |
download | bazarr-6364659c3b3e80dff701a9ce4bad785f2d181932.tar.gz bazarr-6364659c3b3e80dff701a9ce4bad785f2d181932.zip |
no log: removed subscene provider tests
Diffstat (limited to 'tests')
-rw-r--r-- | tests/subliminal_patch/test_subscene.py | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/tests/subliminal_patch/test_subscene.py b/tests/subliminal_patch/test_subscene.py deleted file mode 100644 index 72063aae3..000000000 --- a/tests/subliminal_patch/test_subscene.py +++ /dev/null @@ -1,50 +0,0 @@ -from subliminal_patch.providers import subscene_cloudscraper as subscene - - -def test_provider_scraper_call(): - with subscene.SubsceneProvider() as provider: - result = provider._scraper_call( - "https://subscene.com/subtitles/breaking-bad-fifth-season" - ) - assert result.status_code == 200 - - -def test_provider_gen_results(): - with subscene.SubsceneProvider() as provider: - assert list(provider._gen_results("Breaking Bad")) - - -def test_provider_search_movie(): - with subscene.SubsceneProvider() as provider: - result = provider._search_movie("Taxi Driver", 1976) - assert result == "/subtitles/taxi-driver" - - -def test_provider_find_movie_subtitles(languages): - with subscene.SubsceneProvider() as provider: - result = provider._find_movie_subtitles( - "/subtitles/taxi-driver", languages["en"] - ) - assert result - - -def test_provider_search_tv_show_season(): - with subscene.SubsceneProvider() as provider: - result = provider._search_tv_show_season("The Wire", 1) - assert result == "/subtitles/the-wire--first-season" - - -def test_provider_find_episode_subtitles(languages): - with subscene.SubsceneProvider() as provider: - result = provider._find_episode_subtitles( - "/subtitles/the-wire--first-season", 1, 1, languages["en"] - ) - assert result - - -def test_provider_download_subtitle(languages): - path = "https://subscene.com/subtitles/the-wire--first-season/english/115904" - subtitle = subscene.SubsceneSubtitle(languages["en"], path, "", 1) - with subscene.SubsceneProvider() as provider: - provider.download_subtitle(subtitle) - assert subtitle.is_valid() |