From f6c01464020f70e2736f8a2d9ad185515e3d87db Mon Sep 17 00:00:00 2001 From: Vitiko Date: Wed, 15 Feb 2023 20:49:56 -0400 Subject: Improve providers utils --- tests/subliminal_patch/test_utils.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests/subliminal_patch') 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)] ) -- cgit v1.2.3