xiaozhi-esp32-server/main/xiaozhi-server/tests
Jacob 15d9b0fba1
fix: harden weather and news plugins (#3465)
* fix: harden weather and news plugins

* 修掉天气新闻插件的三处鲁棒性缺陷

城市查询不再写死国内范围,境外城市也能查到。实时天气和七天预报要都拿到才走 JSON,缺一个就整体退回网页路径,不产出残缺报告。网页抓取加上跟随跳转,旧链接的 302 也能拿到内容。城市查不到时不再让用户去核对地名,多数情况是密钥失效。报告补上气压和降水量。新闻 URL 拼接抽成纯函数,配了 23 项单测。

---------

Co-authored-by: hrz <1710360675@qq.com>
2026-10-29 09:46:01 +08:00
..
config 加配置合并函数测试,7 例 2026-09-02 22:24:35 +08:00
core 文件直接写入wav,无需经过二次编解码 2026-10-20 10:45:31 +08:00
plugins_func fix: harden weather and news plugins (#3465) 2026-10-29 09:46:01 +08:00
__init__.py 加 Python 冒烟测试,验证 pytest 流水线 2026-09-02 22:24:35 +08:00
conftest.py chore(deps): 批量升级 4 个允许的依赖 (#3374) 2026-09-17 15:57:43 +08:00
test_llm.py chore(deps): 批量升级 4 个允许的依赖 (#3374) 2026-09-17 15:57:43 +08:00
test_manage_api_client_lifecycle.py 迁移测试用例,优化相关注释 2026-10-13 14:31:21 +08:00
test_memory.py chore(deps): 批量升级 4 个允许的依赖 (#3374) 2026-09-17 15:57:43 +08:00
test_rag.py chore(deps): 批量升级 4 个允许的依赖 (#3374) 2026-09-17 15:57:43 +08:00
test_smoke.py 加 Python 冒烟测试,验证 pytest 流水线 2026-09-02 22:24:35 +08:00
test_stt.py chore(deps): 批量升级 4 个允许的依赖 (#3374) 2026-09-17 15:57:43 +08:00
test_tts.py chore(deps): 批量升级 4 个允许的依赖 (#3374) 2026-09-17 15:57:43 +08:00