加 Python 冒烟测试,验证 pytest 流水线

This commit is contained in:
hrz 2026-09-02 19:49:30 +08:00
parent 22b1703557
commit b90dd01826
2 changed files with 14 additions and 0 deletions

View file

View 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"