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