diff options
author | vitiko98 <[email protected]> | 2022-06-21 01:44:24 -0400 |
---|---|---|
committer | vitiko98 <[email protected]> | 2022-06-21 01:44:24 -0400 |
commit | 14153d7688fcd7f00bd6f02f155308cd18050ac3 (patch) | |
tree | 8073dc2795c99ca60380972672d3463fcb8f12e5 /tests | |
parent | 696becbeb174aa06c905a99171c84fb985e9887a (diff) | |
download | bazarr-14153d7688fcd7f00bd6f02f155308cd18050ac3.tar.gz bazarr-14153d7688fcd7f00bd6f02f155308cd18050ac3.zip |
Subdivx provider: avoid TypeErrorv1.0.5-beta.31
Diffstat (limited to 'tests')
-rw-r--r-- | tests/subliminal_patch/test_subdivx.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/subliminal_patch/test_subdivx.py b/tests/subliminal_patch/test_subdivx.py index 7dc77941f..ae9676aee 100644 --- a/tests/subliminal_patch/test_subdivx.py +++ b/tests/subliminal_patch/test_subdivx.py @@ -26,6 +26,16 @@ def test_list_subtitles_movie_with_year_fallback(movies): assert provider.list_subtitles(item, {Language("spa", "MX")}) +def test_handle_multi_page_search(episodes): + with SubdivxSubtitlesProvider() as provider: + subs = list( + provider._handle_multi_page_search( + "Game Of Thrones", episodes["got_s03e10"] + ) + ) + assert len(subs) > 100 + + @pytest.mark.parametrize( "episode_key,expected", [("breaking_bad_s01e01", 15), ("inexistent", 0)] ) |