MCPcopy Index your code
hub / github.com/modelcontextprotocol/python-sdk / app

Function app

tests/server/auth/test_error_handling.py:29–43  ·  view source on GitHub ↗
(oauth_provider: MockOAuthProvider)

Source from the content-addressed store, hash-verified

27
28@pytest.fixture
29def 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

Callers

nothing calls this directly

Calls 3

RevocationOptionsClass · 0.90
create_auth_routesFunction · 0.90

Tested by

no test coverage detected