From 02efff395e282c0e7a3b712188f9acf79aee5bd3 Mon Sep 17 00:00:00 2001 From: Robert Clark Date: Sat, 25 Apr 2020 19:58:15 -0500 Subject: [PATCH] Fix issue with FB schedule using invalid date (#409) 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 --- tests/integration/schedule/test_fb_schedule.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/integration/schedule/test_fb_schedule.py b/tests/integration/schedule/test_fb_schedule.py index 9843d2a9..c564ab27 100644 --- a/tests/integration/schedule/test_fb_schedule.py +++ b/tests/integration/schedule/test_fb_schedule.py @@ -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) \