MCPcopy Create free account
hub / github.com/encode/starlette / test_mount_at_root

Function test_mount_at_root

tests/test_routing.py:420–423  ·  view source on GitHub ↗
(test_client_factory: TestClientFactory)

Source from the content-addressed store, hash-verified

418
419
420def test_mount_at_root(test_client_factory: TestClientFactory) -> None:
421 mounted = Router([Mount("/", ok, name="users")])
422 client = test_client_factory(mounted)
423 assert client.get("/").status_code == 200
424
425
426def users_api(request: Request) -> JSONResponse:

Callers

nothing calls this directly

Calls 4

RouterClass · 0.90
MountClass · 0.90
test_client_factoryFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected