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

Function test_mount_named_repr

tests/test_routing.py:1055–1064  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1053
1054
1055def test_mount_named_repr() -> None:
1056 route = Mount(
1057 "/app",
1058 name="app",
1059 routes=[
1060 Route("/", endpoint=homepage),
1061 ],
1062 )
1063 # test for substring because repr(Router) returns unique object ID
1064 assert repr(route).startswith("Mount(path='/app', name='app', app=")
1065
1066
1067def test_host_repr() -> None:

Callers

nothing calls this directly

Calls 2

MountClass · 0.90
RouteClass · 0.90

Tested by

no test coverage detected