File tree Expand file tree Collapse file tree 2 files changed +0
-2
lines changed Expand file tree Collapse file tree 2 files changed +0
-2
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,6 @@ def external_browser(cfg: 'Config') -> Optional[CredentialsProvider]:
215215 # to detect if the token is expired and needs to be refreshed
216216 # by going through the OAuth login flow.
217217 credentials .token ()
218- token_cache .save (credentials )
219218 return credentials (cfg )
220219 # TODO: We should ideally use more specific exceptions.
221220 except Exception as e :
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ def test_external_browser_refresh_success(mocker):
3030 got_credentials_provider = external_browser (mock_cfg )
3131
3232 mock_token_cache .load .assert_called_once ()
33- mock_token_cache .save .assert_called_once_with (mock_session_credentials )
3433 mock_session_credentials .token .assert_called_once () # Verify token refresh was attempted
3534 assert got_credentials_provider == want_credentials_provider
3635
You can’t perform that action at this time.
0 commit comments