Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use month with 31 days to avoid test failures #1086

Merged
merged 1 commit into from Oct 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/test_search.py
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