test: 修复 7 个失败用例 + 测试隔离(225/225 全绿)

- 新增 tests/conftest.py:CALLLOG_DB 指向临时目录 + 自动打开库(TestClient 不走 lifespan)
- 4 个 /logs 用例适配读库后的行为(断言前 flush;只看自己改为库里塞记录 + /logs/calls 断言)
- 夹具 grok-4.6 → grok-4.7(模型清单已同步)
- api_calls 增 video_id 列(自动迁移),/logs 映射补回该字段
- requirements-dev.txt(pytest);测试改为幂等
- 版本 2.9.13 → 2.9.14
This commit is contained in:
jidekin committed 2026-10-23 16:17:19 +08:00
1 parent ee1cb2373b
commit 1068bd96a8
6 files changed
+89 -20

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
# 开发/测试依赖(生产不需要)
-r requirements.txt
pytest>=8.0 # tests/ 有 225 个用例:/root/.venvs/api-gateway/bin/python -m pytest tests/ -q