mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-10-11 09:10:45 +00:00
Prompt option to always show a dialog when giving permissions to Spotify (#438)
* Add show_dialog option to prompt_for_user_token() * Adjust test_get_authorize_url_shows_dialog_when_requested
This commit is contained in:
1 parent
4515446a65
commit
04bdd27d85
3 files changed
+8
-4
No files matched your search
@@ -159,9 +159,9 @@ class TestSpotifyOAuth(unittest.TestCase):
|
||||
self.assertNotIn('show_dialog', parsed_qs)
|
||||
|
||||
def test_get_authorize_url_shows_dialog_when_requested(self):
|
||||
oauth = SpotifyOAuth("CLID", "CLISEC", "REDIR")
|
||||
oauth = SpotifyOAuth("CLID", "CLISEC", "REDIR", show_dialog=True)
|
||||
|
||||
url = oauth.get_authorize_url(show_dialog=True)
|
||||
url = oauth.get_authorize_url()
|
||||
|
||||
parsed_url = urllibparse.urlparse(url)
|
||||
parsed_qs = urllibparse.parse_qs(parsed_url.query)
|
||||
|
||||
Reference in new issue
Block a user