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

+1
View File
@@ -1,4 +1,5 @@
import base64
import requests
+4 -6
View File
@@ -1,12 +1,10 @@
from spotipy import (
Spotify,
SpotifyClientCredentials,
SpotifyException
)
import spotipy
import unittest
import requests
import spotipy
from spotipy import Spotify, SpotifyClientCredentials, SpotifyException
class AuthTestSpotipy(unittest.TestCase):
"""
+4 -9
View File
@@ -1,14 +1,9 @@
import os
from spotipy import (
CLIENT_CREDS_ENV_VARS as CCEV,
prompt_for_user_token,
Spotify,
SpotifyException,
SpotifyImplicitGrant,
SpotifyPKCE
)
import unittest
from spotipy import CLIENT_CREDS_ENV_VARS as CCEV
from spotipy import (Spotify, SpotifyException, SpotifyImplicitGrant,
SpotifyPKCE, prompt_for_user_token)
from tests import helpers
+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,