Files
smart-project-pricing/后端服务/pytest.ini
2026-01-31 21:33:06 +08:00

37 lines
643 B
INI
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[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 = .