tests for tracks in collaborative playlists
This commit is contained in:
parent
40ff2b42a7
commit
895ebb0898
3 changed files with 21 additions and 2 deletions
|
|
@ -85,6 +85,12 @@ class TestBrowsing:
|
|||
assert len(album["tracks"]) == 19
|
||||
assert len(album["artists"]) == 1
|
||||
assert len(album) == 14
|
||||
for track in album["tracks"]:
|
||||
assert isinstance(track["title"], str) and track["title"]
|
||||
assert len(track["artists"]) > 0
|
||||
for artist in track["artists"]:
|
||||
assert "name" in artist
|
||||
assert isinstance(artist["name"], str) and artist["name"]
|
||||
|
||||
def test_get_album(self, yt, yt_auth, sample_album):
|
||||
album = yt_auth.get_album(sample_album)
|
||||
|
|
|
|||
Loading…
Reference in a new issue