aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorVitiko <[email protected]>2023-02-15 20:49:56 -0400
committerVitiko <[email protected]>2023-02-15 20:49:56 -0400
commitf6c01464020f70e2736f8a2d9ad185515e3d87db (patch)
tree4dcbf098567c3ae58725465baf5164640c27c1c0 /tests
parent8ac3b0c9b56def6153e3144bec7be0f0abf56f8a (diff)
downloadbazarr-f6c01464020f70e2736f8a2d9ad185515e3d87db.tar.gz
bazarr-f6c01464020f70e2736f8a2d9ad185515e3d87db.zip
Improve providers utils
Diffstat (limited to 'tests')
-rw-r--r--tests/subliminal_patch/test_utils.py8
1 files changed, 8 insertions, 0 deletions
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)]
)