Skip to content

Commit

Permalink
adds test of stats parsing (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdilday authored Jul 7, 2021
1 parent 8a8e398 commit 0915652
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/integration/pybaseball/test_league_batting_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0915652

Please sign in to comment.