mirror of
https://github.com/snowy-yang/xiaonuan.git
synced 2026-10-21 08:04:48 +00:00
- tests/conftest.py: 内存版 FakeDB 复刻 db.py 全部签名,绕过 lifespan 的测试应用 - test_chat_flow.py: WebSocket 全链路(回声/路由信号落库/档案/慢信/连续天数) - test_delivery.py: 事件/每日任务/关怀投递(在线与离线)、天气工具城市链、system prompt 注入 - test_router.py: 小模型路由清洗(去重/丢过去事件/非法作息/500优雅降级/无模型空判定) - test_tool_loop.py: 原生工具调用循环(喂结果/超轮次强制收尾/坏参数) - test_pure.py: 纯逻辑(连续天数/哈希槽位/时间间隔/模板/向量) - test_db_pg.py: PG 集成测试,无 PG_DSN 自动跳过,配好即真实跑库 - 旧散装脚本移除;tools_live/ws_client/tui_smoke 保留为手动脚本
25 lines
484 B
TOML
25 lines
484 B
TOML
[project]
|
|
name = "xiaonuan"
|
|
version = "0.1.0"
|
|
description = "小暖 · AI 陪伴(容器世界的数字生命)"
|
|
requires-python = ">=3.14"
|
|
dependencies = [
|
|
"asyncpg>=0.31.0",
|
|
"fastapi>=0.141.1",
|
|
"httpx>=0.28.1",
|
|
"textual>=8.2.8",
|
|
"uvicorn[standard]>=0.53.0",
|
|
]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=9.1.1",
|
|
"pytest-asyncio>=1.4.0",
|
|
]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
python_files = ["test_*.py"]
|
|
pythonpath = ["."]
|
|
asyncio_mode = "auto"
|