[pytest] # 统一的测试发现规则(本地与 CI 行为一致) testpaths = admin/tests tests data python_files = test_*.py *_test.py python_classes = Test* python_functions = test_* # 输出 addopts = -ra --strict-markers --tb=short # 超时:单个测试 30s(防止 CI 因卡死浪费资源) timeout = 30