возможно исправил ошибку таймера с vMix

This commit is contained in:
2026-08-24 15:34:58 +03:00
parent 7d934a6ee6
commit 0ef8378dd1
7 changed files with 184 additions and 47 deletions

View File

@@ -32,15 +32,16 @@ def test_main_countdown_start_pause_stop_all_hard_sync_web_value():
assert 'vmixCountdownSyncCommands(input, selectedName, valueProvider, "stop")' in block
helper = _block("function vmixCountdownSyncCommands", "function buildShortcutRuntimeContext")
start_branch = helper.rsplit("return [", 1)[1]
assert start_branch.index('Function: "SuspendCountdown"') < start_branch.index('Function: "SetCountdown"')
assert 'Function: "SuspendCountdown"' not in start_branch
assert start_branch.index('Function: "SetCountdown"') < start_branch.index('Function: "StartCountdown"')
def test_penalty_pause_freezes_before_reseed_and_start_reseeds_before_run():
block = _block("async function rebalanceVmixPenaltyTargets", "function finishActionMatchesSource")
assert 'stopCommands.push({ Function: "SuspendCountdown"' in block
assert 'stopCommands.push({ Function: "StopCountdown"' in block
assert 'setCommands.push({ Function: "SetCountdown"' in block
assert 'runCommands.push({ Function: "StartCountdown"' in block
assert 'sendRuntimeVmixTimerSequence(commands)' in block
assert "prepared/paused penalty" in block