поправлены сложные удаления
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user