Skip to content

Commit

Permalink
fix search test
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma67 committed Jul 3, 2024
1 parent e71bfa2 commit c97a13e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/mixins/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ def test_search_exceptions(self, yt_auth):
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) >= 10
assert len(results) >= 8
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) >= 10
assert len(results) >= 8
assert not any(
artist["name"].lower() in ALL_RESULT_TYPES
for result in results
Expand Down

0 comments on commit c97a13e

Please sign in to comment.