style: strip trailing periods from all series blurbs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+4
-4
@@ -118,17 +118,17 @@ def series_blurb(game):
|
||||
# the next matchup \u2014 fall through to a generic series-score blurb instead.
|
||||
if not is_final:
|
||||
if state["is_game7"]:
|
||||
return "Win-or-go-home."
|
||||
return "Win-or-go-home"
|
||||
if state["is_clincher"] and leader_name:
|
||||
return f"{leader_name} can close it out."
|
||||
return f"{leader_name} can close it out"
|
||||
if state["is_pivotal"]:
|
||||
return "Series tied 2\u20112 \u2014 pivotal."
|
||||
return "Series tied 2\u20112 \u2014 pivotal"
|
||||
if state["is_opener"]:
|
||||
return "Series opener"
|
||||
if leader_name and trailer_name:
|
||||
return f"{leader_name} lead {state['hi']}\u2011{state['lo']}"
|
||||
if state["hi"] == state["lo"]:
|
||||
return f"Series even at {state['hi']}\u2011{state['lo']}."
|
||||
return f"Series even at {state['hi']}\u2011{state['lo']}"
|
||||
return ""
|
||||
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ class TestSeriesBlurb:
|
||||
|
||||
def test_game7_blurb(self):
|
||||
game = make_playoff_game(top_wins=3, bottom_wins=3)
|
||||
assert series_blurb(game) == "Win-or-go-home."
|
||||
assert series_blurb(game) == "Win-or-go-home"
|
||||
|
||||
def test_clincher_blurb_names_leader(self):
|
||||
game = make_playoff_game(
|
||||
|
||||
Reference in New Issue
Block a user