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

Function auth_config

tests/unittests/auth/test_auth_config.py:65–74  ·  view source on GitHub ↗

Create an AuthConfig for testing.

(oauth2_auth_scheme, oauth2_credentials)

Source from the content-addressed store, hash-verified

63
64@pytest.fixture
65def auth_config(oauth2_auth_scheme, oauth2_credentials):
66 """Create an AuthConfig for testing."""
67 # Create a copy of the credentials for the exchanged_auth_credential
68 exchanged_credential = oauth2_credentials.model_copy(deep=True)
69
70 return AuthConfig(
71 auth_scheme=oauth2_auth_scheme,
72 raw_auth_credential=oauth2_credentials,
73 exchanged_auth_credential=exchanged_credential,
74 )
75
76
77@pytest.fixture

Callers

nothing calls this directly

Calls 2

AuthConfigClass · 0.90
model_copyMethod · 0.45

Tested by

no test coverage detected