BUILD200 (2026.11.05.1) — закрепить плашку удаления и снимать штраф после гола по ACK vMix
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from tests.test_build200_penalty_display import test_penalty_display as run_penalty_display
|
||||
from pathlib import Path
|
||||
|
||||
from hockey_data.service import HockeyDataService
|
||||
@@ -55,10 +56,7 @@ def test_single_remaining_penalty_outputs_pp_caption_on_opposite_team():
|
||||
|
||||
|
||||
def test_display_plan_never_outputs_two_penalty_plates():
|
||||
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 'return { home: [], away: [], routedToAdvantage: false' in block
|
||||
assert 'home: advantageSide === "home" && transitionEntry ? [transitionEntry] : []' in block
|
||||
assert 'away: advantageSide === "away" && transitionEntry ? [transitionEntry] : []' in block
|
||||
"""Execute the current single-plate contract, including the 2/4 owner pin."""
|
||||
run_penalty_display('pair_home_short_short_first')
|
||||
run_penalty_display('pair_away_short_short_first')
|
||||
run_penalty_display('pure_equal_and_foreign_captions_unchanged')
|
||||
|
||||
Reference in New Issue
Block a user