Added test for current_user_playlists

This commit is contained in:
Paul Lamere 2016-12-31 10:18:46 -05:00
parent 7632696106
commit 76df337079
1 changed files with 5 additions and 0 deletions

View File

@ -86,6 +86,11 @@ class AuthTestSpotipy(unittest.TestCase):
albums = spotify.current_user_saved_albums()
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):
tracks = spotify.current_user_saved_tracks()
total = tracks['total']