Player endpoints example and test

This commit is contained in:
Stephane Bruckert committed 2020-02-22 11:12:29 +00:00
1 parent 125267fa4e
commit 9ed584b398
2 files changed
+25

No files matched your search

+5
View File
@@ -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)