Files
hockey_new/tests/test_build104_timer_stop_no_rollback.py

31 lines
1.0 KiB
Python

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 _block(start: str, end: str) -> str:
return APP_JS.split(start, 1)[1].split(end, 1)[0]
def test_pause_stop_sends_only_pause_only_command():
"""Current native timer contract, executed against production functions."""
run_timer_contract('pause_freezes')
def test_explicit_edit_still_can_seed_stopped_clock():
"""Current native timer contract, executed against production functions."""
run_timer_contract('explicit_edit')
run_timer_contract('first_edit_before_activation')
def test_penalty_pause_preserves_native_vmix_frozen_value():
"""Current native timer contract, executed against production functions."""
run_timer_contract('penalty_pause')
def test_build104_runtime_version():
assert_current_build_contract()