Added support for new_releases and featured_playlists endpoints.

This commit is contained in:
Paul Lamere
2014-10-25 06:40:51 -04:00
parent 06b54e4c1d
commit 373218083f
5 changed files with 118 additions and 1 deletions

View File

@@ -86,6 +86,15 @@ class AuthTestSpotipy(unittest.TestCase):
new_total = tracks['total']
self.assertTrue(new_total == total)
def test_new_releases(self):
response = spotify.new_releases()
self.assertTrue(len(response['albums']) > 0)
def test_featured_releases(self):
response = spotify.featured_playlists()
self.assertTrue(len(response['playlists']) > 0)
def get_or_create_spotify_playlist(self, username, playlist_name):
playlists = spotify.user_playlists(username)
while playlists: