search: fix missing artists when filtering songs/videos (#655)
* search: fix missing artists when filtering songs/videos * search: fix missing artists when filtering songs/videos
This commit is contained in:
parent
77e40b7f7d
commit
e995ae56ce
3 changed files with 5 additions and 2 deletions
|
|
@ -49,6 +49,7 @@ class TestSearch:
|
|||
query = "hip hop playlist"
|
||||
results = yt_auth.search(query, filter="songs")
|
||||
assert len(results) > 10
|
||||
assert all(len(item["artists"]) > 0 for item in results)
|
||||
assert all(item["resultType"] == "song" for item in results)
|
||||
results = yt_auth.search(query, filter="videos")
|
||||
assert len(results) > 10
|
||||
|
|
|
|||
Loading…
Reference in a new issue