mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-11 17:10:45 +00:00
Split test and lint workflows (#1183)
This commit is contained in:
1 parent
2243e135df
commit
84f8b0a64b
61 files changed
+164
-108
No files matched your search
@@ -1,14 +1,13 @@
|
||||
import io
|
||||
import json
|
||||
import unittest
|
||||
|
||||
import unittest.mock as mock
|
||||
import urllib.parse as urllibparse
|
||||
|
||||
from spotipy import SpotifyOAuth, SpotifyImplicitGrant, SpotifyPKCE
|
||||
from spotipy import SpotifyImplicitGrant, SpotifyOAuth, SpotifyPKCE
|
||||
from spotipy.cache_handler import MemoryCacheHandler
|
||||
from spotipy.oauth2 import SpotifyClientCredentials, SpotifyOauthError
|
||||
from spotipy.oauth2 import SpotifyStateError
|
||||
from spotipy.oauth2 import (SpotifyClientCredentials, SpotifyOauthError,
|
||||
SpotifyStateError)
|
||||
|
||||
patch = mock.patch
|
||||
DEFAULT = mock.DEFAULT
|
||||
@@ -487,8 +486,8 @@ class TestSpotifyPKCE(unittest.TestCase):
|
||||
self.assertTrue(auth.code_challenge)
|
||||
|
||||
def test_code_verifier_and_code_challenge_are_correct(self):
|
||||
import hashlib
|
||||
import base64
|
||||
import hashlib
|
||||
auth = SpotifyPKCE("CLID", "REDIR")
|
||||
auth.get_pkce_handshake_parameters()
|
||||
self.assertEqual(auth.code_challenge,
|
||||
|
||||
Reference in new issue
Block a user