mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-12 01:10:45 +00:00
add recommendations endpoints
This commit is contained in:
1 parent
dd021c4087
commit
7472f41948
3 files changed
+51
-1
No files matched your search
@@ -53,6 +53,10 @@ class AuthTestSpotipy(unittest.TestCase):
|
||||
assert('speechiness' in track)
|
||||
self.assertTrue(results[-1] == None)
|
||||
|
||||
def test_recommendations(self):
|
||||
results = spotify.recommendations(self.four_tracks, min_danceability=0, max_loudness=0, target_popularity=50)
|
||||
self.assertTrue(len(results['tracks']) == 20)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
client_credentials_manager = SpotifyClientCredentials()
|
||||
|
||||
Reference in new issue
Block a user