тест 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

@@ -9,10 +9,11 @@ def _block(start: str, end: str) -> str:
return APP_JS.split(start, 1)[1].split(end, 1)[0]
def test_pause_stop_sends_only_stopcountdown():
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: "StopCountdown"' in branch
assert 'Function: "SuspendCountdown"' in branch
assert 'Function: "StopCountdown"' not in branch
assert 'Function: "SetCountdown"' not in branch