summaryrefslogtreecommitdiffhomepage
path: root/tests/subliminal_patch/test_subf2m.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/subliminal_patch/test_subf2m.py')
-rw-r--r--tests/subliminal_patch/test_subf2m.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/subliminal_patch/test_subf2m.py b/tests/subliminal_patch/test_subf2m.py
index bdc956914..729ed3663 100644
--- a/tests/subliminal_patch/test_subf2m.py
+++ b/tests/subliminal_patch/test_subf2m.py
@@ -79,6 +79,14 @@ def test_list_subtitles_movie(movies):
assert provider.list_subtitles(movies["dune"], {Language.fromalpha2("en")})
+def test_list_subtitles_inexistent_movie(movies):
+ with Subf2mProvider() as provider:
+ assert (
+ provider.list_subtitles(movies["inexistent"], {Language.fromalpha2("en")})
+ == []
+ )
+
+
def test_list_subtitles_episode(episodes):
with Subf2mProvider() as provider:
assert provider.list_subtitles(
@@ -86,6 +94,14 @@ def test_list_subtitles_episode(episodes):
)
+def test_list_subtitles_inexistent_episode(episodes):
+ with Subf2mProvider() as provider:
+ assert (
+ provider.list_subtitles(episodes["inexistent"], {Language.fromalpha2("en")})
+ == []
+ )
+
+
def test_download_subtitle(subtitle):
with Subf2mProvider() as provider:
provider.download_subtitle(subtitle)