(oauth_provider: MockOAuthProvider)
| 27 | |
| 28 | @pytest.fixture |
| 29 | def app(oauth_provider: MockOAuthProvider): |
| 30 | # Enable client registration |
| 31 | client_registration_options = ClientRegistrationOptions(enabled=True) |
| 32 | revocation_options = RevocationOptions(enabled=True) |
| 33 | |
| 34 | # Create auth routes |
| 35 | auth_routes = create_auth_routes( |
| 36 | oauth_provider, |
| 37 | issuer_url=AnyHttpUrl("http://localhost"), |
| 38 | client_registration_options=client_registration_options, |
| 39 | revocation_options=revocation_options, |
| 40 | ) |
| 41 | |
| 42 | # Create Starlette app with routes directly |
| 43 | return Starlette(routes=auth_routes) |
| 44 | |
| 45 | |
| 46 | @pytest.fixture |
nothing calls this directly
no test coverage detected