update a couple tests
- replace deleted albums - `MPREb_TPH4WqN5pUo`'s unavailable tracks are now in the tracklist - handle podcast episodes in video results
This commit is contained in:
parent
445833f420
commit
3f27d9bd07
2 changed files with 7 additions and 9 deletions
|
|
@ -81,7 +81,9 @@ class TestSearch:
|
|||
assert all(item["resultType"] == "song" for item in results)
|
||||
results = yt_auth.search(query, filter="videos")
|
||||
assert len(results) > 10
|
||||
assert all(item["views"] != "" for item in results)
|
||||
assert all(
|
||||
item["views"] != "" for item in results if item["videoType"] != "MUSIC_VIDEO_TYPE_PODCAST_EPISODE"
|
||||
) # video results include podcast episodes, which can't track views
|
||||
assert all(item["resultType"] == "video" for item in results)
|
||||
results = yt_auth.search(query, filter="albums", limit=40)
|
||||
assert len(results) > 20
|
||||
|
|
|
|||
Loading…
Reference in a new issue