37 lines
643 B
INI
37 lines
643 B
INI
[pytest]
|
||
# pytest 配置
|
||
# 遵循瑞小美系统技术栈标准
|
||
|
||
# 测试路径
|
||
testpaths = tests
|
||
|
||
# 异步测试配置(pytest-asyncio 0.23+)
|
||
asyncio_mode = auto
|
||
asyncio_default_fixture_loop_scope = function
|
||
|
||
# 测试输出配置
|
||
addopts =
|
||
-v
|
||
--strict-markers
|
||
--tb=short
|
||
-p no:warnings
|
||
|
||
# 测试标记
|
||
markers =
|
||
unit: 单元测试
|
||
integration: 集成测试
|
||
slow: 慢速测试
|
||
api: API 测试
|
||
|
||
# 日志配置
|
||
log_cli = true
|
||
log_cli_level = INFO
|
||
log_cli_format = %(asctime)s [%(levelname)s] %(message)s
|
||
log_cli_date_format = %Y-%m-%d %H:%M:%S
|
||
|
||
# 最小版本
|
||
minversion = 7.4
|
||
|
||
# Python 路径
|
||
pythonpath = .
|