Files
aiagent/.demo_memory/feedback_testing.md

9 lines
439 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
description: 集成测试必须使用真实数据库而非 mock,因为 mock 与生产环境不一致曾导致故障
name: '测试规范: 集成测试用真实数据库'
type: feedback
---
集成测试必须使用真实数据库,不要 mock。
Why: 2026年3月有一次生产迁移失败,因为mock测试通过但真实schema不兼容。
How to apply: 所有涉及 SQLAlchemy session 的测试用例必须使用测试数据库。