diff options
Diffstat (limited to 'tests/subliminal_patch/test_subf2m.py')
-rw-r--r-- | tests/subliminal_patch/test_subf2m.py | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/subliminal_patch/test_subf2m.py b/tests/subliminal_patch/test_subf2m.py index 5db7d290e..5846971b3 100644 --- a/tests/subliminal_patch/test_subf2m.py +++ b/tests/subliminal_patch/test_subf2m.py @@ -63,7 +63,7 @@ def test_find_episode_subtitles(language): assert sub.language == language -def test_fint_episode_subtitles_from_complete_series_path(episodes): +def test_find_episode_subtitles_from_complete_series_path(): path = "/subtitles/courage-the-cowardly-dog" with Subf2mProvider() as provider: @@ -73,6 +73,25 @@ def test_fint_episode_subtitles_from_complete_series_path(episodes): assert sub.language == Language.fromalpha2("en") +def test_list_and_download_subtitles_complete_series_pack(episodes): + episode = list(episodes.values())[0] + + episode.series = "Sam & Max: Freelance Police" + episode.name = "The Glazed McGuffin Affair" + episode.title = "The Glazed McGuffin Affair" + episode.season = 1 + episode.episode = 21 + + with Subf2mProvider() as provider: + subtitles = provider.list_subtitles(episode, {Language.fromalpha2("en")}) + assert subtitles + + subtitle = subtitles[0] + provider.download_subtitle(subtitle) + + assert subtitle.is_valid() + + @pytest.fixture def subtitle(): release_info = """Dune-2021.All.WEBDLL |