xiaozhi-esp32-server/main/xiaozhi-server/tests/testdata
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
..
test-config.yaml fix(tests): make pytest suite runnable from a fresh checkout (CI fix) 2026-10-13 12:55:55 +01:00