style: apply ruff format and fix lint issues in playoff modules
- Rename single-letter `l` loop variables in bracket_view to satisfy E741 - Drop unused `json` import from test_playoff_cache (F401/F811) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
+3
-9
@@ -756,9 +756,7 @@ class TestPlayoffEnrichment:
|
||||
}
|
||||
|
||||
def test_regular_season_game_has_empty_playoff_fields(self, mocker):
|
||||
mocker.patch(
|
||||
"app.games.get_team_standings", return_value=self._FULL_STANDINGS
|
||||
)
|
||||
mocker.patch("app.games.get_team_standings", return_value=self._FULL_STANDINGS)
|
||||
result = parse_games({"games": [make_game()]})
|
||||
g = result[0]
|
||||
assert g["Is Playoff"] is False
|
||||
@@ -791,9 +789,7 @@ class TestPlayoffEnrichment:
|
||||
assert "GAME 7" in result[0]["Series Badges"]
|
||||
|
||||
def test_pinned_game_sorts_first(self, mocker):
|
||||
mocker.patch(
|
||||
"app.games.get_team_standings", return_value=self._FULL_STANDINGS
|
||||
)
|
||||
mocker.patch("app.games.get_team_standings", return_value=self._FULL_STANDINGS)
|
||||
# Low-priority Game 7 PRE should sort above a high-priority non-playoff LIVE
|
||||
g7_pre = make_playoff_game(
|
||||
top_wins=3,
|
||||
@@ -835,9 +831,7 @@ class TestPlayoffEnrichment:
|
||||
assert result[0]["OT Label"] == "OT"
|
||||
|
||||
def test_regular_season_ot_not_flagged_as_playoff_ot(self, mocker):
|
||||
mocker.patch(
|
||||
"app.games.get_team_standings", return_value=self._FULL_STANDINGS
|
||||
)
|
||||
mocker.patch("app.games.get_team_standings", return_value=self._FULL_STANDINGS)
|
||||
game = make_game(
|
||||
game_state="LIVE", period=4, seconds_remaining=180, game_type=2
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user