MCPcopy
hub / github.com/encode/starlette / test_mount_at_root

Function test_mount_at_root

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

Source from the content-addressed store, hash-verified

402
403
404def test_mount_at_root(test_client_factory: TestClientFactory) -> None:
405 mounted = Router([Mount("/", ok, name="users")])
406 client = test_client_factory(mounted)
407 assert client.get("/").status_code == 200
408
409
410def 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