BUILD200 (2026.11.05.1) — закрепить плашку удаления и снимать штраф после гола по ACK vMix
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
from tests.test_build200_penalty_display import test_penalty_display as run_penalty_display
|
||||
from tests.timer_contract_support import run_timer_contract
|
||||
from pathlib import Path
|
||||
|
||||
from hockey_data.service import HockeyDataService
|
||||
@@ -60,15 +62,10 @@ def test_two_vs_one_penalties_caption_only_advantage_team():
|
||||
|
||||
|
||||
def test_runtime_plan_uses_one_plate_and_global_shortest_transition_timer():
|
||||
start = APP_JS.index("function penaltyDisplayEntriesByTargetSide")
|
||||
end = APP_JS.index("function hockeyPenaltySideMappingDetail", start)
|
||||
block = APP_JS[start:end]
|
||||
assert 'const all = [...home, ...away].sort' in block
|
||||
assert 'const transitionEntry = all[0] || null;' in block
|
||||
assert 'home: advantageSide === "home" && transitionEntry ? [transitionEntry] : []' in block
|
||||
assert 'away: advantageSide === "away" && transitionEntry ? [transitionEntry] : []' in block
|
||||
assert 'if (!advantageSide)' in block
|
||||
assert 'return { home: [], away: [], routedToAdvantage: false' in block
|
||||
"""Execute the current single-plate contract, including the 2/4 owner pin."""
|
||||
run_timer_contract('penalty_priority')
|
||||
run_penalty_display('phase_expiry_home_short')
|
||||
run_penalty_display('phase_expiry_away_short')
|
||||
|
||||
|
||||
def test_final_full_strength_action_only_runs_after_last_penalty_and_real_advantage():
|
||||
|
||||
Reference in New Issue
Block a user