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