Add get_library_songs, get_library_albums, get_library_artists (draft)

This commit is contained in:
sigma67 2020-05-01 00:06:01 +02:00
commit f05b7b3be7
No known key found for this signature in database
GPG key ID: 1545A01D4474BAF0
3 changed files with 89 additions and 4 deletions

View file

@ -41,6 +41,22 @@ class TestYTMusic(unittest.TestCase):
# LIBRARY
###############
def test_get_playlists(self):
playlists = youtube_auth.get_playlists()
self.assertGreater(len(playlists), 0)
def test_get_library_songs(self):
songs = youtube_auth.get_library_songs();
self.assertGreater(len(songs), 0)
def test_get_library_albums(self):
albums = youtube_auth.get_library_albums();
self.assertGreater(len(albums), 0)
def test_get_library_artists(self):
artists = youtube_auth.get_library_artists();
self.assertGreater(len(artists), 0)
def test_get_liked_songs(self):
songs = youtube_auth.get_liked_songs(100)
self.assertGreater(len(songs), 0)
@ -69,10 +85,6 @@ class TestYTMusic(unittest.TestCase):
# PLAYLISTS
###############
def test_get_playlists(self):
playlists = youtube_auth.get_playlists()
self.assertGreater(len(playlists), 0)
def test_get_foreign_playlist(self):
songs = youtube.get_playlist_items("PLw-VjHDlEOgs658kAHR_LAaILBXb-s6Q5")
self.assertEqual(len(songs), 200)