This commit is contained in:
2026-09-26 23:18:54 +03:00
parent c707c60a35
commit 5c203a0eea
18 changed files with 1558 additions and 56 deletions

View File

@@ -9,9 +9,10 @@ def _block(start: str, end: str) -> str:
return APP_JS.split(start, 1)[1].split(end, 1)[0]
def test_prepared_penalty_does_not_force_vmix_rebalance():
def test_prepared_penalty_shows_stopped_time_when_scoreboard_is_live():
block = _block("function emitHockeyEventUpdated", "function createHockeyPenaltyDraft")
assert "rebalanceVmixPenaltyTargets" not in block
assert "hockeyEventReady(event)" in block and "hockeyScoreboardIsLive()" in block
assert "rebalanceVmixPenaltyTargets" in block
draft = _block("function createHockeyPenaltyDraft", "function findHockeyPenalty")
assert "startedOnce: false" in draft
control = _block("function controlHockeyPenalty", "function formatHockeyPenaltyTime")