MCPcopy Index your code
hub / github.com/google/adk-python / auth_config

Function auth_config

tests/unittests/auth/test_auth_handler.py:176–185  ·  view source on GitHub ↗

Create an AuthConfig for testing.

(oauth2_auth_scheme, oauth2_credentials)

Source from the content-addressed store, hash-verified

174
175@pytest.fixture
176def auth_config(oauth2_auth_scheme, oauth2_credentials):
177 """Create an AuthConfig for testing."""
178 # Create a copy of the credentials for the exchanged_auth_credential
179 exchanged_credential = oauth2_credentials.model_copy(deep=True)
180
181 return AuthConfig(
182 auth_scheme=oauth2_auth_scheme,
183 raw_auth_credential=oauth2_credentials,
184 exchanged_auth_credential=exchanged_credential,
185 )
186
187
188@pytest.fixture

Callers

nothing calls this directly

Calls 2

AuthConfigClass · 0.90
model_copyMethod · 0.45

Tested by

no test coverage detected