mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 09:13:53 +00:00
Test for track popularity field
This commit is contained in:
parent
ff7c33e97d
commit
51637d7b2c
@ -12,6 +12,7 @@ from spotipy import (
|
||||
SpotifyException,
|
||||
SpotifyClientCredentials
|
||||
)
|
||||
from pprint import pprint # noqa
|
||||
|
||||
|
||||
class TestSpotipy(unittest.TestCase):
|
||||
@ -97,6 +98,7 @@ class TestSpotipy(unittest.TestCase):
|
||||
def test_track_id(self):
|
||||
track = self.spotify.track(self.creep_id)
|
||||
self.assertTrue(track['name'] == 'Creep')
|
||||
self.assertTrue(track['popularity'] > 0)
|
||||
|
||||
def test_track_url(self):
|
||||
track = self.spotify.track(self.creep_url)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user