Files
hockey_new/tests/test_build196_scoreboard_delay.py

28 lines
873 B
Python

"""Run the real-production-function VM delay cases with deterministic time/I/O."""
from pathlib import Path
import subprocess
import pytest
@pytest.mark.parametrize("case", [
"normalization",
"zero_delay_scoreboard_live_only",
"countdown_independent",
"distinct_delays",
"force_tally",
"fresh_state_at_wake",
"out_rein",
"context_aba",
"queued_delivery_aba",
"delay_wake_during_held_strength_mapping",
])
def test_scoreboard_auxiliary_delay_frontend(case):
root = Path(__file__).resolve().parents[1]
result = subprocess.run(
["node", "tests/build196_scoreboard_delay.cjs", case],
cwd=root, capture_output=True, text=True, timeout=15,
)
assert result.returncode == 0, result.stdout + result.stderr
assert f"PASS scoreboard delay frontend: {case}" in result.stdout, result.stdout + result.stderr