签入版本

This commit is contained in:
2026-09-12 17:39:13 +08:00
parent 25c8b039ac
commit 3233d221b0
871 changed files with 103088 additions and 10561 deletions
+16 -2
View File
@@ -1,8 +1,22 @@
# +======================================================================
# | 模块: Pytest 测试配置
# | 说明: 测试发现路径、标记、默认行为配置
# +======================================================================
[pytest]
# 最低版本要求
minversion = 7.0
# 默认测试参数:显示详细信息、严格标记、跳过集成测试
addopts = -ra --strict-markers -m "not integration"
# 测试发现路径
testpaths = tests
pythonpath = .
# 源码路径(用于导入测试模块)
pythonpath = src
# 自定义测试标记
markers =
contract: 契约快照测试(路由/权限串/表名),守护前端与数据契约
integration: 需要真实 MySQL/Redis 的集成测试,默认跳过
integration: 需要真实 MySQL/Redis 的集成测试,默认跳过