summaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/subliminal_patch/test_supersubtitles.py4
-rw-r--r--tests/subliminal_patch/test_utils.py8
2 files changed, 10 insertions, 2 deletions
diff --git a/tests/subliminal_patch/test_supersubtitles.py b/tests/subliminal_patch/test_supersubtitles.py
index 6111cabc0..3794a04ca 100644
--- a/tests/subliminal_patch/test_supersubtitles.py
+++ b/tests/subliminal_patch/test_supersubtitles.py
@@ -44,7 +44,7 @@ def test_list_episode_subtitles(episode):
def test_download_episode_subtitle(episode):
subtitle = SuperSubtitlesSubtitle(
Language.fromalpha2("en"),
- "https://www.feliratok.info/index.php?action=letolt&felirat=1643361676",
+ "https://www.feliratok.eu/index.php?action=letolt&felirat=1643361676",
1643361676,
"All of us are dead",
1,
@@ -82,7 +82,7 @@ def test_download_movie_subtitle(movies):
subtitle = SuperSubtitlesSubtitle(
Language.fromalpha2("en"),
- "https://www.feliratok.info/index.php?action=letolt&felirat=1634579718",
+ "https://www.feliratok.eu/index.php?action=letolt&felirat=1634579718",
1634579718,
"Dune",
0,
diff --git a/tests/subliminal_patch/test_utils.py b/tests/subliminal_patch/test_utils.py
index eb8dc2421..c90cf972a 100644
--- a/tests/subliminal_patch/test_utils.py
+++ b/tests/subliminal_patch/test_utils.py
@@ -122,6 +122,14 @@ def test_update_matches(movies):
assert "source" in matches
+def test_update_matches_iterable(movies):
+ matches = set()
+ utils.update_matches(
+ matches, movies["dune"], ["Subs for dune 2021 bluray x264", "Dune webrip x264"]
+ )
+ assert "source" in matches
+
+
@pytest.mark.parametrize(
"content,expected", [("the.wire.s01e01", True), ("taxi driver 1976", False)]
)