返回 Bug 清单
BUG-0681project-58高已修复backend-config
FastAPI 0.141+ 路由递归遍历 + LLM 供应商预置表
发现:2026-10-09验证:2026-10-15置信度:70%
症状
commit 0a77c5ddd930 (2026-10-05) fix(tests): FastAPI 0.141+ 路由递归遍历 + LLM 供应商预置表
根因
commit message 描述: fix(tests): FastAPI 0.141+ 路由递归遍历 + LLM 供应商预置表
修复方案
修复 165 行,删除 21 行。改动文件: src/common/config.py, tests/conftest.py, tests/unit/test_harden_apis.py, tests/unit/test_ops_tools.py, tests/unit/test_websocket.py
错误签名
fix(tests): FastAPI 0.141+ 路由递归遍历 + LLM 供应商预置表 - conftest: 新增 _collect_routes 递归展开 _IncludedRouter.include_context.included_router.routes
- conftest: 新增 app_paths fixture 全局复用
- test_harden_apis / test_ops_tools / test_websocket: 改用 app_paths fixture
FastAPI 0.141 include_router 不再扁平暴露 path,原测试直接读 app.routes 漏掉子路由
修复后 85/85 测试全绿
- config: LLM_PROVIDERS 预置表 (8 家供应商) + resolved_* 派生属性 + 向后兼容 OPENAI_API_KEY 别名技术信息
来源项目
project-58
涉及文件
src/common/config.py, tests/conftest.py, tests/unit/test_harden_apis.py +2
标签
git-sweep, auto-ingested, project-58, mcp-reported, source-agent