тест 2

This commit is contained in:
2026-08-24 16:25:46 +03:00
parent c82ec2cbfb
commit f9df04bd00
6 changed files with 81 additions and 23 deletions

View File

@@ -30,12 +30,11 @@ def test_countdown_start_is_simple_set_start():
assert 'Value: currentValue' in helper
def test_pause_and_stop_use_stop_then_set():
def test_pause_and_stop_freeze_without_reseed():
helper = _block("function vmixCountdownSyncCommands", "function buildShortcutRuntimeContext")
branch = helper.split('if (action === "stop" || action === "pause")', 1)[1].split('return [', 1)[1].split('];', 1)[0]
assert 'Function: "StopCountdown"' in branch
assert 'Function: "SetCountdown"' in branch
assert branch.index('Function: "StopCountdown"') < branch.index('Function: "SetCountdown"')
assert 'Function: "SetCountdown"' not in branch
assert 'Function: "SuspendCountdown"' not in branch
assert 'Function: "PauseCountdown"' not in branch