[pytest] # pytest 配置文件 # 测试文件匹配模式 python_files = test_*.py *_test.py python_classes = Test* python_functions = test_* # 标记定义 markers = asyncio: 标记异步测试 integration: 标记集成测试(需要实际API服务) slow: 标记慢速测试 unit: 标记单元测试 # 输出选项 addopts = -v --strict-markers --tb=short --disable-warnings # 异步测试配置 asyncio_mode = auto