test: 添加测试框架和全面的单元测试
- 添加 pytest 配置和测试依赖到 requirements.txt - 创建测试包结构和 fixtures (conftest.py) - 添加数据库模块的 CRUD 操作测试 (test_database.py) - 添加 Provider 插件系统测试 (test_providers.py) - 添加调度器模块测试 (test_scheduler.py) - 添加 API 路由测试 (test_api.py) - 添加回归测试覆盖边界条件和错误处理 (test_regressions.py) - 添加健康检查端点用于容器监控 - 修复调度器中的日历计算逻辑和任务执行参数处理 - 更新数据库函数以返回操作结果状态
This commit is contained in:
@@ -4,4 +4,8 @@ aiosqlite>=0.20.0
|
||||
pyyaml>=6.0
|
||||
httpx>=0.28.0
|
||||
pydantic>=2.10.0
|
||||
cryptography>=44.0.0
|
||||
|
||||
# 测试依赖
|
||||
pytest>=8.0.0
|
||||
pytest-asyncio>=0.23.0
|
||||
httpx>=0.28.0
|
||||
|
||||
Reference in New Issue
Block a user