This commit is contained in:
Stephane Bruckert 2020-01-16 03:55:50 +00:00
parent 83a1cb54ef
commit 2ab985a3c8

View File

@ -13,6 +13,7 @@ from spotipy import (
SpotifyClientCredentials SpotifyClientCredentials
) )
class TestSpotipy(unittest.TestCase): class TestSpotipy(unittest.TestCase):
""" """
@ -51,7 +52,8 @@ class TestSpotipy(unittest.TestCase):
self.username = os.getenv(CCEV['client_username']) self.username = os.getenv(CCEV['client_username'])
self.scope = 'user-library-read' self.scope = 'user-library-read'
self.token = prompt_for_user_token(self.username, scope=self.scope) self.token = prompt_for_user_token(self.username, scope=self.scope)
self.spotify = Spotify(client_credentials_manager=SpotifyClientCredentials()) self.spotify = Spotify(
client_credentials_manager=SpotifyClientCredentials())
def test_artist_urn(self): def test_artist_urn(self):
artist = self.spotify.artist(self.radiohead_urn) artist = self.spotify.artist(self.radiohead_urn)