fix some more tests

This commit is contained in:
sigma67 2024-07-03 22:05:50 +02:00
commit 05cb3caf4a
No known key found for this signature in database
4 changed files with 3 additions and 50 deletions

View file

@ -84,7 +84,7 @@ class TestBrowsing:
album = yt.get_album("MPREabc")
assert len(album["tracks"]) == 19
assert len(album["artists"]) == 1
assert len(album) == 13
assert len(album) == 14
def test_get_album(self, yt, yt_auth, sample_album):
album = yt_auth.get_album(sample_album)

View file

@ -77,7 +77,7 @@ class TestSearch:
assert len(results) > 10
assert all(item["resultType"] == "podcast" for item in results)
results = yt_auth.search(query, filter="episodes")
assert len(results) > 10
assert len(results) > 5
assert all(item["resultType"] == "episode" for item in results)
def test_search_top_result(self, yt):