mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-12 01:10:45 +00:00
Added the 'collaboration.py' example
This commit is contained in:
1 parent
2f36e11277
commit
9105e58562
7 files changed
+137
-8
No files matched your search
@@ -60,6 +60,12 @@ class TestSpotipy(unittest.TestCase):
|
||||
self.assertTrue(len(results['artists']) > 0)
|
||||
self.assertTrue(results['artists'][0]['name'] == 'Weezer')
|
||||
|
||||
def test_artist_albums(self):
|
||||
results = self.spotify.artist_albums(self.weezer_urn)
|
||||
self.assertTrue('albums' in results)
|
||||
self.assertTrue(len(results['albums']) > 0)
|
||||
self.assertTrue(results['albums'][0]['artists'][0]['name'] == 'Weezer')
|
||||
|
||||
def test_album_search(self):
|
||||
results = self.spotify.search(q='weezer pinkerton', type='album')
|
||||
self.assertTrue('albums' in results)
|
||||
|
||||
Reference in new issue
Block a user