Skip to content

Commit

Permalink
Fix issue with FB schedule using invalid date (#409)
Browse files Browse the repository at this point in the history
Using the current datetime could run into an issue for the football
schedule tests if the date a test was run happened to be an actual date
on the team's schedule would fail to throw a ValueError. Instead, a date
that is known to not be on the team's schedule should be used to ensure
the tests can complete regardless of the date run.

Signed-Off-By: Robert Clark <robdclark@outlook.com>
  • Loading branch information
roclark authored Apr 26, 2020
1 parent 5b7b3f4 commit 02efff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/schedule/test_fb_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_fb_schedule_returns_requested_match_from_date(self):

def test_no_games_for_date_raises_value_error(self):
with pytest.raises(ValueError):
self.schedule(datetime.now())
self.schedule(datetime(2020, 7, 1))

def test_empty_page_return_no_games(self):
flexmock(utils) \
Expand Down

0 comments on commit 02efff3

Please sign in to comment.