From 76df337079fda3be6efdef332ab3b0e6018cbfd7 Mon Sep 17 00:00:00 2001 From: Paul Lamere Date: Sat, 31 Dec 2016 10:18:46 -0500 Subject: [PATCH] Added test for current_user_playlists --- tests/authtests.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/authtests.py b/tests/authtests.py index 540db5f..a0e7e3b 100644 --- a/tests/authtests.py +++ b/tests/authtests.py @@ -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']