Initial commit: 智能项目定价模型
This commit is contained in:
36
后端服务/pytest.ini
Normal file
36
后端服务/pytest.ini
Normal file
@@ -0,0 +1,36 @@
|
||||
[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 = .
|
||||
Reference in New Issue
Block a user