use 127.0.0.1 instead of localhost to meet new spotify URI criteria (#116)
This commit is contained in:
@@ -2,7 +2,7 @@ spotify:
|
||||
client_id: your_client_id
|
||||
client_secret: your_client_secret
|
||||
username: your_spotify_username
|
||||
redirect_uri: http://localhost:8888/callback
|
||||
redirect_uri: http://127.0.0.1:8888/callback
|
||||
open_browser: True # Set to False if using a headless server environment
|
||||
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ def test_open_spotify_session(mocker):
|
||||
"username": "test_user",
|
||||
"client_id": "test_client_id",
|
||||
"client_secret": "test_client_secret",
|
||||
"redirect_uri": "http://localhost/",
|
||||
"redirect_uri": "http://127.0.0.1/",
|
||||
"open_browser": True,
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ def test_open_spotify_session(mocker):
|
||||
scope=SPOTIFY_SCOPES,
|
||||
client_id="test_client_id",
|
||||
client_secret="test_client_secret",
|
||||
redirect_uri="http://localhost/",
|
||||
redirect_uri="http://127.0.0.1/",
|
||||
requests_timeout=2,
|
||||
open_browser=True,
|
||||
)
|
||||
@@ -64,7 +64,7 @@ def test_open_spotify_session_oauth_error(mocker):
|
||||
"username": "test_user",
|
||||
"client_id": "test_client_id",
|
||||
"client_secret": "test_client_secret",
|
||||
"redirect_uri": "http://localhost/",
|
||||
"redirect_uri": "http://127.0.0.1/",
|
||||
}
|
||||
|
||||
# Mock sys.exit to prevent the test from exiting
|
||||
|
||||
Reference in New Issue
Block a user