test(ai): 添加 erp-ai 集成测试 — 14 个测试覆盖 3 个 service
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

- PromptService: 创建/查询/列表筛选/激活版本切换/回滚/跨租户隔离/未找到错误 (7)
- UsageService: 日志记录/概览/按类型聚合/跨租户隔离 (4)
- AnalysisService: 完成分析/失败分析/缓存查找/列表筛选 (3)
- 使用 MockProvider 替代真实 AI 调用
This commit is contained in:
iven
2026-05-01 00:57:16 +08:00
parent 9b8c2ff7e1
commit 3b38562533
3 changed files with 484 additions and 0 deletions

View File

@@ -44,3 +44,5 @@ mod health_dialysis_prescription_tests;
mod health_follow_up_template_tests;
#[path = "integration/health_daily_monitoring_tests.rs"]
mod health_daily_monitoring_tests;
#[path = "integration/ai_prompt_tests.rs"]
mod ai_prompt_tests;