тест 3
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user