diff --git a/tests/test_mount_sub_app_router.py b/tests/test_mount_sub_app_router.py index 9d81703318..fdc1b06ef5 100644 --- a/tests/test_mount_sub_app_router.py +++ b/tests/test_mount_sub_app_router.py @@ -52,7 +52,5 @@ def test_mount_preserved_in_routes(): app = FastAPI() app.include_router(router) - mount_routes = [ - r for r in app.routes if isinstance(r, Mount) and "/sub" in r.path - ] + mount_routes = [r for r in app.routes if isinstance(r, Mount) and "/sub" in r.path] assert len(mount_routes) == 1