test: 修复所有预存的失败测试

- test_auth_routes: monkeypatch 环境为 production 使 phone-session 限速生效
- test_schedule_items_routes: 补充必填 timezone 字段
- test_llm_pricing_service: 更新 deepseek-chat 费率期望值匹配实际 catalog
- test_sse_flow_live: 补充 runId 查询参数、改用附件上传 API、修复 history 响应断言、独立 DB session 避免跨事件循环崩溃
- test_agent_prompt: 移除已删除的 project_cli_defaults 断言
- test_toolkit: 更新 action card 断言匹配 module/method 格式
This commit is contained in:
qzl
2026-04-24 14:11:11 +08:00
parent d2d292a99e
commit 18b5e876ee
6 changed files with 47 additions and 26 deletions
@@ -105,7 +105,8 @@ def test_view_skill_file_reads_calendar_action_card() -> None:
block = response.content[0]
text = block["text"] if isinstance(block, dict) else block.text
assert "get_event" in text
assert '"action": "get_event"' in text
assert '"method": "read"' in text
assert '"mode": "event"' in text
assert skill_session.has_read(skill_name="calendar") is True