[pytest] DJANGO_SETTINGS_MODULE = config.settings.test # §附录E:统一口径 —— 默认 pytest 即全量(tests/ + apps/*/tests/), # 不再有人因显式写 tests/ 而漏跑 apps/core/tests 的 14 个用例。 testpaths = tests apps python_files = test_*.py python_classes = Test* python_functions = test_* addopts = -ra --tb=short -q asyncio_mode = auto markers = postgres: 需要 PostgreSQL(行级锁/并发语义),SQLite 下自动跳过 filterwarnings = ignore::DeprecationWarning