mirror of
https://github.com/c0de-archive/spotipy.git
synced 2025-01-08 15:42:48 +00:00
Added test for current_user_playlists
This commit is contained in:
parent
7632696106
commit
76df337079
@ -86,6 +86,11 @@ class AuthTestSpotipy(unittest.TestCase):
|
|||||||
albums = spotify.current_user_saved_albums()
|
albums = spotify.current_user_saved_albums()
|
||||||
self.assertTrue(len(albums['items']) > 0)
|
self.assertTrue(len(albums['items']) > 0)
|
||||||
|
|
||||||
|
def test_current_user_playlists(self):
|
||||||
|
playlists = spotify.current_user_playlists(limit=10)
|
||||||
|
self.assertTrue('items' in playlists)
|
||||||
|
self.assertTrue(len(playlists['items']) == 10)
|
||||||
|
|
||||||
def test_current_user_save_and_unsave_tracks(self):
|
def test_current_user_save_and_unsave_tracks(self):
|
||||||
tracks = spotify.current_user_saved_tracks()
|
tracks = spotify.current_user_saved_tracks()
|
||||||
total = tracks['total']
|
total = tracks['total']
|
||||||
|
Loading…
Reference in New Issue
Block a user