[pytest] minversion = 7.0 addopts = -ra --strict-markers -m "not integration" testpaths = tests pythonpath = . markers = contract: 契约快照测试(路由/权限串/表名),守护前端与数据契约 integration: 需要真实 MySQL/Redis 的集成测试,默认跳过