diff --git a/app/playoff.py b/app/playoff.py index fae46bf..166346e 100644 --- a/app/playoff.py +++ b/app/playoff.py @@ -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 "" diff --git a/tests/test_playoff_series.py b/tests/test_playoff_series.py index 71d4a8e..6284503 100644 --- a/tests/test_playoff_series.py +++ b/tests/test_playoff_series.py @@ -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(