Skip to content

Commit

Permalink
fix search queries test
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma67 committed Jul 23, 2024
1 parent 6e0fd5e commit 0f00260
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/mixins/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@ 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
if "artists" in result
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
Expand Down

0 comments on commit 0f00260

Please sign in to comment.