第一次提交

This commit is contained in:
rjb
2026-01-19 00:09:36 +08:00
parent de4b5059e9
commit 6674060f2f
191 changed files with 40940 additions and 0 deletions

31
backend/pytest.ini Normal file
View File

@@ -0,0 +1,31 @@
[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