mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 01:03:53 +00:00
Changed 40x response test for unauthenticated playlist access
This commit is contained in:
parent
d2d5fe9060
commit
948e3f1ef7
@ -118,7 +118,7 @@ class TestSpotipy(unittest.TestCase):
|
||||
def test_unauthenticated_post_fails(self):
|
||||
with self.assertRaises(SpotifyException) as cm:
|
||||
self.spotify.user_playlist_create("spotify", "Best hits of the 90s")
|
||||
self.assertEqual(cm.exception.http_status, 401)
|
||||
self.assertEqual(cm.exception.http_status, 403)
|
||||
|
||||
def test_custom_requests_session(self):
|
||||
from requests import Session
|
||||
|
||||
Loading…
Reference in New Issue
Block a user