holy fuking shit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user