Split test and lint workflows (#1183)

This commit is contained in:
Stéphane Bruckert authored and GitHub committed 2025-01-18 15:21:51 +00:00
1 parent 2243e135df
commit 84f8b0a64b
61 files changed
+164 -108

No files matched your search

+4 -5
View File
@@ -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,