MCPcopy Create free account
hub / github.com/google/adk-python / auth_config_with_key

Function auth_config_with_key

tests/unittests/auth/test_auth_config.py:78–85  ·  view source on GitHub ↗

Create an AuthConfig for testing.

(oauth2_auth_scheme, oauth2_credentials)

Source from the content-addressed store, hash-verified

76
77@pytest.fixture
78def auth_config_with_key(oauth2_auth_scheme, oauth2_credentials):
79 """Create an AuthConfig for testing."""
80
81 return AuthConfig(
82 auth_scheme=oauth2_auth_scheme,
83 raw_auth_credential=oauth2_credentials,
84 credential_key="test_key",
85 )
86
87
88def test_custom_credential_key(auth_config_with_key):

Callers

nothing calls this directly

Calls 1

AuthConfigClass · 0.90

Tested by

no test coverage detected