Add get_library_songs, get_library_albums, get_library_artists (draft)
This commit is contained in:
parent
e0d4f0af57
commit
f05b7b3be7
3 changed files with 89 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue