@@ -65,9 +65,11 @@ def test_api_key(self):
6565
6666 def test_from_adk_credentials_oauth2 (self ):
6767 from fastapi .openapi .models import OAuth2 , OAuthFlows
68- from google .adk .auth .auth_credential import (AuthCredential ,
69- AuthCredentialTypes ,
70- OAuth2Auth )
68+ from google .adk .auth .auth_credential import (
69+ AuthCredential ,
70+ AuthCredentialTypes ,
71+ OAuth2Auth ,
72+ )
7173
7274 auth_credential = AuthCredential (
7375 auth_type = AuthCredentialTypes .OAUTH2 ,
@@ -84,9 +86,12 @@ def test_from_adk_credentials_oauth2(self):
8486
8587 def test_from_adk_credentials_http_bearer (self ):
8688 from fastapi .openapi .models import HTTPBearer
87- from google .adk .auth .auth_credential import (AuthCredential ,
88- AuthCredentialTypes ,
89- HttpAuth , HttpCredentials )
89+ from google .adk .auth .auth_credential import (
90+ AuthCredential ,
91+ AuthCredentialTypes ,
92+ HttpAuth ,
93+ HttpCredentials ,
94+ )
9095
9196 auth_credential = AuthCredential (
9297 auth_type = AuthCredentialTypes .HTTP ,
@@ -104,8 +109,7 @@ def test_from_adk_credentials_http_bearer(self):
104109
105110 def test_from_adk_credentials_api_key (self ):
106111 from fastapi .openapi .models import APIKey , APIKeyIn
107- from google .adk .auth .auth_credential import (AuthCredential ,
108- AuthCredentialTypes )
112+ from google .adk .auth .auth_credential import AuthCredential , AuthCredentialTypes
109113
110114 auth_credential = AuthCredential (
111115 auth_type = AuthCredentialTypes .API_KEY , api_key = "abc"
@@ -122,8 +126,7 @@ def test_from_adk_credentials_api_key(self):
122126
123127 def test_from_adk_credentials_api_key_default_location (self ):
124128 from fastapi .openapi .models import APIKey
125- from google .adk .auth .auth_credential import (AuthCredential ,
126- AuthCredentialTypes )
129+ from google .adk .auth .auth_credential import AuthCredential , AuthCredentialTypes
127130
128131 auth_credential = AuthCredential (
129132 auth_type = AuthCredentialTypes .API_KEY , api_key = "abc"
@@ -148,8 +151,7 @@ class MockScheme:
148151 def test_from_adk_credentials_api_key_query_fail (self ):
149152 import pytest
150153 from fastapi .openapi .models import APIKey , APIKeyIn
151- from google .adk .auth .auth_credential import (AuthCredential ,
152- AuthCredentialTypes )
154+ from google .adk .auth .auth_credential import AuthCredential , AuthCredentialTypes
153155
154156 cred = AuthCredential (auth_type = AuthCredentialTypes .API_KEY , api_key = "abc" )
155157 scheme = APIKey (type = "apiKey" , name = "key" , ** {"in" : APIKeyIn .query })
@@ -161,8 +163,7 @@ def test_from_adk_credentials_api_key_query_fail(self):
161163
162164 def test_from_adk_credentials_api_key_no_scheme_raises (self ):
163165 import pytest
164- from google .adk .auth .auth_credential import (AuthCredential ,
165- AuthCredentialTypes )
166+ from google .adk .auth .auth_credential import AuthCredential , AuthCredentialTypes
166167
167168 auth_credential = AuthCredential (
168169 auth_type = AuthCredentialTypes .API_KEY , api_key = "my-key"
@@ -174,8 +175,7 @@ def test_from_adk_credentials_api_key_no_scheme_raises(self):
174175
175176 def test_from_adk_credentials_unsupported (self ):
176177 import pytest
177- from google .adk .auth .auth_credential import (AuthCredential ,
178- AuthCredentialTypes )
178+ from google .adk .auth .auth_credential import AuthCredential , AuthCredentialTypes
179179
180180 auth_credential = AuthCredential (
181181 auth_type = AuthCredentialTypes .OAUTH2
@@ -186,9 +186,11 @@ def test_from_adk_credentials_unsupported(self):
186186
187187 def test_from_adk_auth_config (self ):
188188 from fastapi .openapi .models import OAuth2 , OAuthFlows
189- from google .adk .auth .auth_credential import (AuthCredential ,
190- AuthCredentialTypes ,
191- OAuth2Auth )
189+ from google .adk .auth .auth_credential import (
190+ AuthCredential ,
191+ AuthCredentialTypes ,
192+ OAuth2Auth ,
193+ )
192194 from google .adk .auth .auth_tool import AuthConfig
193195
194196 oauth2_auth = OAuth2Auth (client_id = "cid2" , client_secret = "csec2" , scopes = ["s2" ])
0 commit comments