mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-11 09:10:45 +00:00
1 parent
651080e3da
commit
5e9f97df8e
2 files changed
+23
-2
No files matched your search
@@ -297,6 +297,10 @@ class SpotipyBrowseApiTests(unittest.TestCase):
|
||||
token = prompt_for_user_token(username)
|
||||
cls.spotify = Spotify(auth=token)
|
||||
|
||||
def test_category(self):
|
||||
response = self.spotify.category('rock')
|
||||
self.assertTrue('name' in response)
|
||||
|
||||
def test_categories(self):
|
||||
response = self.spotify.categories()
|
||||
self.assertGreater(len(response['categories']), 0)
|
||||
|
||||
Reference in new issue
Block a user