Create an AuthConfig for testing.
(oauth2_auth_scheme, oauth2_credentials)
| 63 | |
| 64 | @pytest.fixture |
| 65 | def 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 |
nothing calls this directly
no test coverage detected