тест 3

This commit is contained in:
2026-08-24 16:39:58 +03:00
parent f9df04bd00
commit 1e46f1cb9f
6 changed files with 57 additions and 18 deletions

View File

@@ -22,11 +22,11 @@ def test_timer_start_stop_protocol_is_minimal():
helper = _block("function vmixCountdownSyncCommands", "function buildShortcutRuntimeContext")
assert 'if (action === "stop" || action === "pause")' in helper
stop_branch = helper.split('if (action === "stop" || action === "pause")', 1)[1].split('return [', 1)[1].split('];', 1)[0]
assert 'Function: "StopCountdown"' in stop_branch
assert 'Function: "SuspendCountdown"' in stop_branch
assert 'Function: "StopCountdown"' not in stop_branch
assert 'Function: "SetCountdown"' not in stop_branch
start_branch = helper.rsplit('return [', 1)[1]
assert start_branch.index('Function: "SetCountdown"') < start_branch.index('Function: "StartCountdown"')
assert 'SuspendCountdown' not in helper
assert 'PauseCountdown' not in helper