[pytest] # Pytest配置文件 testpaths = tests python_files = test_*.py python_classes = Test* python_functions = test_* asyncio_mode = auto asyncio_default_fixture_loop_scope = function # 输出选项 addopts = -v --tb=short --strict-markers --disable-warnings --color=yes # 标记 markers = unit: 单元测试 integration: 集成测试 slow: 慢速测试(需要网络或数据库) api: API测试 workflow: 工作流测试 auth: 认证测试 # 日志配置 log_cli = true log_cli_level = INFO log_cli_format = %(asctime)s [%(levelname)8s] %(message)s log_cli_date_format = %Y-%m-%d %H:%M:%S