поправлены сложные удаления

This commit is contained in:
2026-08-20 15:06:17 +03:00
parent 559888cc0c
commit 3dc21e4619
6 changed files with 109 additions and 44 deletions

View File

@@ -14,11 +14,11 @@ def test_authoritative_strength_change_rebalances_penalty_targets():
assert "Penalty strength rebalance error" in block
def test_penalty_plan_still_routes_two_vs_one_to_advantage_side():
def test_penalty_plan_rebalances_after_strength_refresh_without_forcing_complex_powerplay():
start = APP_JS.index("function penaltyDisplayEntriesByTargetSide")
end = APP_JS.index("function hockeyPenaltySideMappingDetail", start)
block = APP_JS[start:end]
assert 'if (advantageSide === "home")' in block
assert 'return { home: take(away), away: [], routedToAdvantage: true, advantageSide: "home" };' in block
assert 'if (advantageSide === "away")' in block
assert 'return { home: [], away: take(home), routedToAdvantage: true, advantageSide: "away" };' in block
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