xiaozhi-esp32-server/main/xiaozhi-server/tests
lapy d51c54f483 fix(tests): make pytest suite runnable from a fresh checkout (CI fix)
PR#2 CI: the Python job failed with 17 FileNotFoundError collection errors.
Widening CI from upstream's smoke-test-only to the full suite exposed that
the suite depends on main/xiaozhi-server/data/.config.yaml, which is
gitignored and therefore absent on CI runners (dev boxes always have it, so
the local rebase gate never caught it).

- add tracked tests/testdata/test-config.yaml (placeholder keys, empty
  manager-api block, same shape as the local stub)
- conftest falls back to it when data/.config.yaml is missing (explicit
  PYTEST_CONFIG_FILE still wins)
- neutralize config.settings/config.logger check_config_file bindings and
  logger's load_config so setup_logging() at module import works without a
  real deployment config; these names are bound at import time via
  manage_api_client -> config.logger, so patching the source modules alone
  was not enough

Verified on a clean clone with py3.10 + full requirements: 58 passed,
5 skipped; lifecycle unittests 11 OK on both clean clone and dev box.
2026-10-13 12:55:55 +01:00
..
config 加配置合并函数测试,7 例 2026-09-02 22:24:35 +08:00
core fix(server): restore merge-lost runtime fixes and western defaults 2026-10-11 18:54:25 +01:00
plugins_func 加插件包导入冒烟测试,1 例 2026-09-02 22:24:35 +08:00
testdata fix(tests): make pytest suite runnable from a fresh checkout (CI fix) 2026-10-13 12:55:55 +01:00
__init__.py 加 Python 冒烟测试,验证 pytest 流水线 2026-09-02 22:24:35 +08:00
conftest.py fix(tests): make pytest suite runnable from a fresh checkout (CI fix) 2026-10-13 12:55:55 +01:00
test_llm.py fix(server): restore merge-lost runtime fixes and western defaults 2026-10-11 18:54:25 +01:00
test_manage_api_client_lifecycle.py merge: sync upstream main 2026-10-13 (16 commits) 2026-10-13 11:48:47 +01:00
test_memory.py chore(westernization): translate remaining Han text across code, UI and docs 2026-10-11 17:58:15 +01:00
test_rag.py chore(westernization): translate remaining Han text across code, UI and docs 2026-10-11 17:58:15 +01:00
test_smoke.py 加 Python 冒烟测试,验证 pytest 流水线 2026-09-02 22:24:35 +08:00
test_stt.py chore(westernization): translate remaining Han text across code, UI and docs 2026-10-11 17:58:15 +01:00
test_tts.py chore(westernization): translate remaining Han text across code, UI and docs 2026-10-11 17:58:15 +01:00