mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-12 09:10:45 +00:00
Player endpoints example and test
This commit is contained in:
1 parent
125267fa4e
commit
9ed584b398
2 files changed
+25
No files matched your search
@@ -387,3 +387,8 @@ class AuthTestSpotipy(unittest.TestCase):
|
||||
pl = self.spotify.user_playlist_tracks(None, self.playlist, limit=2)
|
||||
self.assertTrue(len(pl["items"]) == 2)
|
||||
self.assertTrue(pl["total"] > 0)
|
||||
|
||||
def test_devices(self):
|
||||
# No devices playing by default
|
||||
res = self.spotify.devices()
|
||||
self.assertEqual(len(res["devices"]), 0)
|
||||
Reference in new issue
Block a user