From 0f00260f572436ba901f69c52fcfc34bb43037fc Mon Sep 17 00:00:00 2001 From: sigma67 Date: Tue, 23 Jul 2024 21:51:19 +0200 Subject: [PATCH] fix search queries test --- tests/mixins/test_search.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/mixins/test_search.py b/tests/mixins/test_search.py index 0a51ae2e..55e24c7d 100644 --- a/tests/mixins/test_search.py +++ b/tests/mixins/test_search.py @@ -12,11 +12,11 @@ def test_search_exceptions(self, yt_auth): with pytest.raises(Exception, match="Invalid scope provided"): yt_auth.search(query, scope="upload") - @pytest.mark.parametrize("query", ["Monekes", "qllwlwl", "heun"]) + @pytest.mark.parametrize("query", ["Monekes", "llwlwl", "heun"]) def test_search_queries(self, yt, yt_brand, query: str) -> None: results = yt_brand.search(query) assert ["resultType" in r for r in results] == [True] * len(results) - assert len(results) >= 8 + assert len(results) >= 5 assert not any( artist["name"].lower() in ALL_RESULT_TYPES for result in results @@ -24,7 +24,7 @@ def test_search_queries(self, yt, yt_brand, query: str) -> None: for artist in result["artists"] ) results = yt.search(query) - assert len(results) >= 8 + assert len(results) >= 5 assert not any( artist["name"].lower() in ALL_RESULT_TYPES for result in results