pre-commit-ci-lite[bot]
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
3 deletions
-
tests/test_mount_sub_app_router.py
|
|
@ -52,7 +52,5 @@ def test_mount_preserved_in_routes(): |
|
|
app = FastAPI() |
|
|
app = FastAPI() |
|
|
app.include_router(router) |
|
|
app.include_router(router) |
|
|
|
|
|
|
|
|
mount_routes = [ |
|
|
mount_routes = [r for r in app.routes if isinstance(r, Mount) and "/sub" in r.path] |
|
|
r for r in app.routes if isinstance(r, Mount) and "/sub" in r.path |
|
|
|
|
|
] |
|
|
|
|
|
assert len(mount_routes) == 1 |
|
|
assert len(mount_routes) == 1 |
|
|
|