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

Function test_mount_repr

tests/test_routing.py:1044–1052  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1042
1043
1044def test_mount_repr() -> None:
1045 route = Mount(
1046 "/app",
1047 routes=[
1048 Route("/", endpoint=homepage),
1049 ],
1050 )
1051 # test for substring because repr(Router) returns unique object ID
1052 assert repr(route).startswith("Mount(path='/app', name='', app=")
1053
1054
1055def test_mount_named_repr() -> None:

Callers

nothing calls this directly

Calls 2

MountClass · 0.90
RouteClass · 0.90

Tested by

no test coverage detected