Skip to content

Commit 8d06de1

Browse files
committed
lint
1 parent dca6791 commit 8d06de1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/toolbox-core/src/toolbox_core/auth_methods.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,12 @@ def get_google_id_token(audience: Optional[str] = None) -> str:
125125
if new_id_token:
126126
_update_cache(new_id_token)
127127
return BEARER_TOKEN_PREFIX + new_id_token
128-
128+
129129
if audience is None:
130-
raise Exception('You are not authenticating using User Credentials.'
131-
' Please set the audience string to the Toolbox service URL to get the Google ID token.')
130+
raise Exception(
131+
"You are not authenticating using User Credentials."
132+
" Please set the audience string to the Toolbox service URL to get the Google ID token."
133+
)
132134

133135
# Get credentials for Google Cloud environments or for service account key files
134136
try:

packages/toolbox-core/tests/test_auth_methods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,4 +229,4 @@ def test_get_raises_if_no_audience_and_no_local_token(
229229
auth_methods.get_google_id_token()
230230

231231
mock_default.assert_called_once()
232-
mock_fetch.assert_not_called()
232+
mock_fetch.assert_not_called()

0 commit comments

Comments
 (0)