add tearDownClass to unfollow test playlist after tests (#680)

This commit is contained in:
Gustavo Krieger authored and GitHub committed 2021-04-23 18:41:50 +01:00
1 parent 49f46264c7
commit e4c581bbb6
1 file changed
+4
+4
View File
@@ -58,6 +58,10 @@ class SpotipyPlaylistApiTest(unittest.TestCase):
cls.spotify.user_playlist_create(cls.username, cls.new_playlist_name)
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):
playlists = self.spotify.user_playlists(self.username, limit=5)
self.assertTrue('items' in playlists)