@@ -144,7 +144,8 @@ def test_authorization_url_access_type(self, instance):
144144 def test_authorization_url_generated_verifier (self ):
145145 scope = 'scope_one'
146146 instance = flow .Flow .from_client_config (
147- CLIENT_SECRETS_INFO , scopes = [scope ], autogenerate_code_verifier = True )
147+ CLIENT_SECRETS_INFO , scopes = [scope ],
148+ autogenerate_code_verifier = True )
148149 authorization_url_path = mock .patch .object (
149150 instance .oauth2session , 'authorization_url' ,
150151 wraps = instance .oauth2session .authorization_url )
@@ -237,21 +238,6 @@ def set_token(*args, **kwargs):
237238 with fetch_token_patch as fetch_token_mock :
238239 yield fetch_token_mock
239240
240- @mock .patch ('google_auth_oauthlib.flow.input' , autospec = True )
241- def test_run_console (self , input_mock , instance , mock_fetch_token ):
242- input_mock .return_value = mock .sentinel .code
243- credentials = instance .run_console ()
244-
245- assert credentials .token == mock .sentinel .access_token
246- assert credentials ._refresh_token == mock .sentinel .refresh_token
247- assert credentials .id_token == mock .sentinel .id_token
248-
249- mock_fetch_token .assert_called_with (
250- CLIENT_SECRETS_INFO ['web' ]['token_uri' ],
251- client_secret = CLIENT_SECRETS_INFO ['web' ]['client_secret' ],
252- code = mock .sentinel .code ,
253- code_verifier = None )
254-
255241 @mock .patch ('google_auth_oauthlib.flow.input' , autospec = True )
256242 def test_run_console (self , input_mock , instance , mock_fetch_token ):
257243 input_mock .return_value = mock .sentinel .code
0 commit comments