()
| 1053 | |
| 1054 | |
| 1055 | def 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 | |
| 1067 | def test_host_repr() -> None: |