mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-11 17:10:45 +00:00
Added support for new_releases and featured_playlists endpoints.
This commit is contained in:
1 parent
06b54e4c1d
commit
373218083f
5 files changed
+118
-1
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user