Create an AuthConfig for testing.
(oauth2_auth_scheme, oauth2_credentials)
| 76 | |
| 77 | @pytest.fixture |
| 78 | def 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 | |
| 88 | def test_custom_credential_key(auth_config_with_key): |