Merge pull request #1866 from hironow:hironow/type-fix-for-static

PiperOrigin-RevId: 782040553
This commit is contained in:
Copybara-Service
2025-07-11 11:02:03 -07:00
6 changed files with 15 additions and 15 deletions
@@ -208,9 +208,9 @@ class TestOAuth2CredentialExchanger:
exchanger = OAuth2CredentialExchanger()
# Mock AUTHLIB_AVIALABLE to False
# Mock AUTHLIB_AVAILABLE to False
with patch(
"google.adk.auth.exchanger.oauth2_credential_exchanger.AUTHLIB_AVIALABLE",
"google.adk.auth.exchanger.oauth2_credential_exchanger.AUTHLIB_AVAILABLE",
False,
):
result = await exchanger.exchange(credential, scheme)
+1 -1
View File
@@ -456,7 +456,7 @@ class TestExchangeAuthToken:
self, auth_config_with_auth_code, monkeypatch
):
"""Test when token exchange is not supported."""
monkeypatch.setattr("google.adk.auth.auth_handler.AUTHLIB_AVIALABLE", False)
monkeypatch.setattr("google.adk.auth.auth_handler.AUTHLIB_AVAILABLE", False)
handler = AuthHandler(auth_config_with_auth_code)
result = await handler.exchange_auth_token()