diff --git a/main/xiaozhi-server/tests/__init__.py b/main/xiaozhi-server/tests/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/main/xiaozhi-server/tests/test_smoke.py b/main/xiaozhi-server/tests/test_smoke.py new file mode 100644 index 000000000..c479ed034 --- /dev/null +++ b/main/xiaozhi-server/tests/test_smoke.py @@ -0,0 +1,14 @@ +"""Smoke test — confirms pytest can collect from this directory. + +Real tests land in Slice 2 (see docs/superpowers/specs/2026-09-02-test-infrastructure-design.md). +""" + + +def test_pytest_works(): + assert 1 + 1 == 2 + + +def test_repo_path_is_writable(tmp_path): + p = tmp_path / "scratch.txt" + p.write_text("ok", encoding="utf-8") + assert p.read_text(encoding="utf-8") == "ok"