Skip to content

Commit

Permalink
test_search.py: use a month with 31 days to avoid test failures (#1086)
Browse files Browse the repository at this point in the history
  • Loading branch information
gutsytechster authored Oct 18, 2022
1 parent c30d8c0 commit b132381
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,15 +461,15 @@ def test_search_and_parse(self, shortname, string, expected, settings=None):
('October', datetime.datetime(2014, 10, datetime.datetime.utcnow().day, 0, 0)),
('Friday, 21', datetime.datetime(2014, 10, 21, 0, 0))]),
param('en', """May 2020
June 2020
July 2020
2023
January UTC
June 5 am utc
June 23th 5 pm EST
May 31, 8am UTC""",
[('May 2020', datetime.datetime(2020, 5, datetime.datetime.utcnow().day, 0, 0)),
('June 2020', datetime.datetime(2020, 6, datetime.datetime.utcnow().day, 0, 0)),
('2023', datetime.datetime(2023, 6, datetime.datetime.utcnow().day, 0, 0)),
('July 2020', datetime.datetime(2020, 7, datetime.datetime.utcnow().day, 0, 0)),
('2023', datetime.datetime(2023, 7, datetime.datetime.utcnow().day, 0, 0)),
('January UTC', datetime.datetime(2023, 1, datetime.datetime.utcnow().day, 0, 0, tzinfo=pytz.utc)),
('June 5 am utc', datetime.datetime(2023, 6, 5, 0, 0, tzinfo=pytz.utc)),
('June 23th 5 pm EST', datetime.datetime(2023, 6, 23, 17, 0, tzinfo=pytz.timezone("EST"))),
Expand Down

0 comments on commit b132381

Please sign in to comment.