mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 01:03:53 +00:00
add tearDownClass to unfollow test playlist after tests (#680)
This commit is contained in:
parent
49f46264c7
commit
e4c581bbb6
@ -58,6 +58,10 @@ class SpotipyPlaylistApiTest(unittest.TestCase):
|
|||||||
cls.spotify.user_playlist_create(cls.username, cls.new_playlist_name)
|
cls.spotify.user_playlist_create(cls.username, cls.new_playlist_name)
|
||||||
cls.new_playlist_uri = cls.new_playlist['uri']
|
cls.new_playlist_uri = cls.new_playlist['uri']
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def tearDownClass(cls):
|
||||||
|
cls.spotify.current_user_unfollow_playlist(cls.new_playlist['id'])
|
||||||
|
|
||||||
def test_user_playlists(self):
|
def test_user_playlists(self):
|
||||||
playlists = self.spotify.user_playlists(self.username, limit=5)
|
playlists = self.spotify.user_playlists(self.username, limit=5)
|
||||||
self.assertTrue('items' in playlists)
|
self.assertTrue('items' in playlists)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user