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:
Solomon Victorino 2025-07-24 10:23:26 -06:00 • committed by sigma67
commit 3f27d9bd07
2 changed files with 7 additions and 9 deletions

View file

@ -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