mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-11 09:10:45 +00:00
Merge branch 'master' into v3_rebase_rebase
# Conflicts: # setup.py
This commit is contained in:
commit
3b1fd2a8f3
5 files changed
+54
-70
No files matched your search
@@ -391,33 +391,6 @@ class SpotipyBrowseApiTests(unittest.TestCase):
|
||||
response = self.spotify.categories(limit=50)
|
||||
self.assertLessEqual(len(response['categories']['items']), 50)
|
||||
|
||||
def test_category_playlists(self):
|
||||
response = self.spotify.categories()
|
||||
category = 'rock'
|
||||
for cat in response['categories']['items']:
|
||||
cat_id = cat['id']
|
||||
if cat_id == category:
|
||||
response = self.spotify.category_playlists(category_id=cat_id)
|
||||
self.assertGreater(len(response['playlists']["items"]), 0)
|
||||
|
||||
def test_category_playlists_limit_low(self):
|
||||
response = self.spotify.categories()
|
||||
category = 'rock'
|
||||
for cat in response['categories']['items']:
|
||||
cat_id = cat['id']
|
||||
if cat_id == category:
|
||||
response = self.spotify.category_playlists(category_id=cat_id, limit=1)
|
||||
self.assertEqual(len(response['categories']['items']), 1)
|
||||
|
||||
def test_category_playlists_limit_high(self):
|
||||
response = self.spotify.categories()
|
||||
category = 'rock'
|
||||
for cat in response['categories']['items']:
|
||||
cat_id = cat['id']
|
||||
if cat_id == category:
|
||||
response = self.spotify.category_playlists(category_id=cat_id, limit=50)
|
||||
self.assertLessEqual(len(response['categories']['items']), 50)
|
||||
|
||||
def test_new_releases(self):
|
||||
response = self.spotify.new_releases()
|
||||
self.assertGreater(len(response['albums']['items']), 0)
|
||||
@@ -430,10 +403,6 @@ class SpotipyBrowseApiTests(unittest.TestCase):
|
||||
response = self.spotify.new_releases(limit=50)
|
||||
self.assertLessEqual(len(response['albums']['items']), 50)
|
||||
|
||||
def test_featured_releases(self):
|
||||
response = self.spotify.featured_playlists()
|
||||
self.assertGreater(len(response['playlists']), 0)
|
||||
|
||||
|
||||
class SpotipyFollowApiTests(unittest.TestCase):
|
||||
@classmethod
|
||||
|
||||
Reference in new issue
Block a user