1 parent aa5128c commit 9dd0952Copy full SHA for 9dd0952
1 file changed
backend/tests/smoke.py
@@ -65,7 +65,10 @@ def test_llm_client_import():
65
66
def test_routers_wire():
67
from app.main import app
68
- paths = {r.path for r in app.routes}
+ # Some FastAPI versions expose included routers as _IncludedRouter objects
69
+ # without .path — filter to route objects that actually have paths.
70
+ paths = {getattr(r, "path", None) for r in app.routes}
71
+ paths.discard(None)
72
for expected in (
73
"/api/v1/health",
74
"/api/v1/settings",
0 commit comments