from tests.timer_contract_support import run_timer_contract, assert_current_build_contract from pathlib import Path ROOT = Path(__file__).resolve().parents[1] APP_JS = (ROOT / "ui_builder/static/app.js").read_text(encoding="utf-8") APP = (ROOT / "app.py").read_text(encoding="utf-8") def test_game_countdown_resume_is_reseeded_before_start(): """Current native timer contract, executed against production functions.""" run_timer_contract('resume_preserves_native') run_timer_contract('native_events') def test_hockey_timer_shortcut_reseeds_game_and_penalty_on_resume(): """Current native timer contract, executed against production functions.""" run_timer_contract('shortcut_resume') # Native penalty transitions are exercised in test_stage2_penalty_countdown.py. def test_native_mode_still_has_no_per_second_countdown_transport(): """Current native timer contract, executed against production functions.""" run_timer_contract('no_tick_transport') def test_build93_runtime_version(): assert_current_build_contract()