191 build - поправлены старые падения, проверены 3 матча и 6 агентов одновременных
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from tests.timer_contract_support import run_timer_contract, assert_current_build_contract
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
@@ -10,29 +11,20 @@ def _block(start: str, end: str) -> str:
|
||||
|
||||
|
||||
def test_pause_stop_sends_only_pause_only_command():
|
||||
helper = _block("function vmixCountdownSyncCommands", "function buildShortcutRuntimeContext")
|
||||
branch = helper.split('if (action === "stop" || action === "pause")', 1)[1].split('if (action === "set")', 1)[0]
|
||||
assert 'Function: "SuspendCountdown"' in branch
|
||||
assert 'Function: "StopCountdown"' not in branch
|
||||
assert 'Function: "SetCountdown"' not in branch
|
||||
"""Current native timer contract, executed against production functions."""
|
||||
run_timer_contract('pause_freezes')
|
||||
|
||||
|
||||
def test_explicit_edit_still_can_seed_stopped_clock():
|
||||
helper = _block("function vmixCountdownSyncCommands", "function buildShortcutRuntimeContext")
|
||||
branch = helper.split('if (action === "set")', 1)[1].split('return [', 2)[1]
|
||||
assert 'Function: "StopCountdown"' in branch
|
||||
assert 'Function: "SetCountdown"' in branch
|
||||
sync = _block("async function syncActiveVmixGameCountdown", "function penaltyMirrorKey")
|
||||
assert 'timerState.running ? "start" : "set"' in sync
|
||||
"""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():
|
||||
rebalance = _block("async function rebalanceVmixPenaltyTargets", "function finishActionMatchesSource")
|
||||
assert "preservePausedCountdown = false" in rebalance
|
||||
assert "if (!preservePausedCountdown || assignmentChanged)" in rebalance
|
||||
control = _block("function controlHockeyPenalty", "function formatHockeyPenaltyTime")
|
||||
assert 'preservePausedCountdown: command === "pause"' in control
|
||||
"""Current native timer contract, executed against production functions."""
|
||||
run_timer_contract('penalty_pause')
|
||||
|
||||
|
||||
def test_build104_runtime_version():
|
||||
assert 'BUILD_VERSION = "2026.08.24.7"' in APP
|
||||
assert_current_build_contract()
|
||||
|
||||
Reference in New Issue
Block a user