holy fuking shit

This commit is contained in:
Horldsence
2026-09-12 01:56:34 +08:00
parent 36f354736c
commit d975309a81
83 changed files with 2748 additions and 896 deletions
+2 -1
View File
@@ -20,6 +20,7 @@ HARNESS = REPO / "referee" / "tests" / "js" / "replay_harness.cjs"
@pytest.mark.skipif(shutil.which("node") is None, reason="需要 node 环境运行 JS 桩测试")
def test_replay_player_logic():
result = subprocess.run(["node", str(HARNESS)], capture_output=True, text=True,
env={**os.environ, "REPO": str(REPO)}, timeout=60)
env={**os.environ, "REPO": str(REPO)}, timeout=60,
check=False)
assert result.returncode == 0, f"回放器逻辑测试失败:\n{result.stdout}\n{result.stderr}"
assert "ALL PASS" in result.stdout