Skip to content

Commit 25af3fb

Browse files
committed
fix(tests/test_search.py): fix failing tests for search_dates
The search_dates default behavior is to use UTC timezone when no overridden setting is provided, hence the test must define the expectations in UTC timezone.
1 parent 57e09d6 commit 25af3fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_search.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from dateparser_data.settings import default_parsers
1111
from tests import BaseTestCase
1212

13-
today = datetime.datetime.today()
13+
today = datetime.datetime.now(tz=pytz.timezone('UTC'))
1414

1515

1616
class TestTranslateSearch(BaseTestCase):

0 commit comments

Comments
 (0)