From 091565278a1399c1b256f6e738a6edc5be4fc869 Mon Sep 17 00:00:00 2001 From: Ben Dilday Date: Wed, 7 Jul 2021 05:55:33 -0400 Subject: [PATCH] adds test of stats parsing (#220) --- tests/integration/pybaseball/test_league_batting_stats.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/integration/pybaseball/test_league_batting_stats.py b/tests/integration/pybaseball/test_league_batting_stats.py index 970aa99b..3ac88b28 100644 --- a/tests/integration/pybaseball/test_league_batting_stats.py +++ b/tests/integration/pybaseball/test_league_batting_stats.py @@ -51,3 +51,10 @@ def test_bwar_bat_return_all() -> None: def test_batting_stats_range_single_date(): stats = batting_stats_range('2019-05-01', ) assert not stats.empty + + +def test_batting_stats_range_parsing_error(): + """This tests the issue with parsing mentioned in + https://github.com/jldbc/pybaseball/issues/218""" + stats = batting_stats_range("2021-06-26", "2021-06-26") + assert len(stats) > 200