tests for tracks in collaborative playlists

This commit is contained in:
czifumasa 2024-07-20 22:03:13 +02:00 • committed by sigma67
commit 895ebb0898
3 changed files with 21 additions and 2 deletions

View file

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