mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-26 04:39:53 +01:00
加 Python 冒烟测试,验证 pytest 流水线
This commit is contained in:
parent
22b1703557
commit
b90dd01826
2 changed files with 14 additions and 0 deletions
0
main/xiaozhi-server/tests/__init__.py
Normal file
0
main/xiaozhi-server/tests/__init__.py
Normal file
14
main/xiaozhi-server/tests/test_smoke.py
Normal file
14
main/xiaozhi-server/tests/test_smoke.py
Normal file
|
|
@ -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"
|
||||||
Loading…
Reference in a new issue