поправлены в какой то раз удаления для верхнего счета

This commit is contained in:
2026-08-20 15:20:19 +03:00
parent 3dc21e4619
commit 8790a1e113
9 changed files with 244 additions and 78 deletions

View File

@@ -14,11 +14,12 @@ def test_authoritative_strength_change_rebalances_penalty_targets():
assert "Penalty strength rebalance error" in block
def test_penalty_plan_rebalances_after_strength_refresh_without_forcing_complex_powerplay():
def test_penalty_plan_rebalances_after_strength_refresh_to_single_advantage_plate():
start = APP_JS.index("function penaltyDisplayEntriesByTargetSide")
end = APP_JS.index("function hockeyPenaltySideMappingDetail", start)
block = APP_JS[start:end]
assert 'if (home.length && away.length)' in block
assert 'routedToAdvantage: false' in block
assert 'if (home.length)' in block
assert 'if (away.length)' in block
assert 'penaltyLocalAdvantageSide(home.length, away.length)' in block
assert 'transitionEntry = all[0]' in block
assert 'routedToAdvantage: true' in block
assert 'if (!advantageSide)' in block