mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
feat: Enhance google credentials config to support externally passed access token
PiperOrigin-RevId: 868390961
This commit is contained in:
committed by
Copybara-Service
parent
4aa475145f
commit
3cf43e3842
@@ -139,8 +139,8 @@ class TestBigQueryCredentials:
|
||||
with pytest.raises(
|
||||
ValueError,
|
||||
match=(
|
||||
"Must provide either credentials or client_id and client_secret"
|
||||
" pair"
|
||||
"Must provide one of credentials, external_access_token_key, or"
|
||||
" client_id and client_secret pair"
|
||||
),
|
||||
):
|
||||
BigQueryCredentialsConfig(client_id="test_client_id")
|
||||
@@ -150,8 +150,8 @@ class TestBigQueryCredentials:
|
||||
with pytest.raises(
|
||||
ValueError,
|
||||
match=(
|
||||
"Must provide either credentials or client_id and client_secret"
|
||||
" pair"
|
||||
"Must provide one of credentials, external_access_token_key, or"
|
||||
" client_id and client_secret pair"
|
||||
),
|
||||
):
|
||||
BigQueryCredentialsConfig(client_secret="test_client_secret")
|
||||
@@ -165,8 +165,8 @@ class TestBigQueryCredentials:
|
||||
with pytest.raises(
|
||||
ValueError,
|
||||
match=(
|
||||
"Must provide either credentials or client_id and client_secret"
|
||||
" pair"
|
||||
"Must provide one of credentials, external_access_token_key, or"
|
||||
" client_id and client_secret pair"
|
||||
),
|
||||
):
|
||||
BigQueryCredentialsConfig()
|
||||
|
||||
Reference in New Issue
Block a user