xiaozhi-esp32-server/main/xiaozhi-server/tests
Allen 592f77a5d4 fix(config): 端口配置为空时不再让服务启动失败(#1491)
从智控台读配置时,config/config_loader.py 把整个 server 段换成本地配置,
本地没写端口(或写成空串)时用 "" 兜底,把智控台下发的端口覆盖成空字符串;
随后 app.py 的 int(config["server"].get("http_port", 8003)) 抛 ValueError,
服务在启动阶段就崩掉:

    ValueError: invalid literal for int() with base 10: ''

改动:
- config_loader:端口按「本地非空 → 智控台下发的值 → 默认 8000/8003」取值;
  本地没配的 server 字段继续沿用智控台下发的值,不再整块替换
- core/utils/util:新增 safe_int,空串/None/非数字统一回落到默认值
- 7 处 int(server_config.get("port"/"http_port", ...)) 改用 safe_int,
  端口为空时退到默认值而不是抛异常
2026-11-26 15:27:20 +08:00
..
config fix(config): 端口配置为空时不再让服务启动失败(#1491) 2026-11-26 15:27:20 +08:00
core 分句循环切分,切分结果不再依赖分片粒度 2026-11-25 15:27:00 +08:00
plugins_func Merge pull request #3548 from zhenglieAllen/zhenglieAllen/fix/check-model-key-none 2026-11-19 09:52:20 +08:00
__init__.py 加 Python 冒烟测试,验证 pytest 流水线 2026-09-02 22:24:35 +08:00
conftest.py Merge branch 'main' into py-test-ollama 2026-11-19 11:13:30 +08:00
test_llm.py Merge branch 'main' into py-test-ollama 2026-11-19 11:13:30 +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 调整相关测试 2026-11-19 17:11:57 +08:00