From 00b34547e99259eda92d7bd1ca406e74693d6861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 19 Apr 2020 18:30:20 +0200 Subject: [PATCH] Remove test requiring dateparser --- tests/factory_tests.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/tests/factory_tests.py b/tests/factory_tests.py index abdd0d0..65fa1bb 100644 --- a/tests/factory_tests.py +++ b/tests/factory_tests.py @@ -2,7 +2,6 @@ import time from datetime import date, datetime -import dateparser from chai import Chai from dateutil import tz @@ -113,14 +112,6 @@ class GetTests(Chai): assertDtEqual(self.factory.get(tz.gettz("US/Pacific")), self.expected) - # regression test for issue #658 - def test_one_arg_dateparser_datetime(self): - expected = datetime(1990, 1, 1).replace(tzinfo=tz.tzutc()) - # dateparser outputs: datetime.datetime(1990, 1, 1, 0, 0, tzinfo=) - parsed_date = dateparser.parse("1990-01-01T00:00:00+00:00") - dt_output = self.factory.get(parsed_date)._datetime.replace(tzinfo=tz.tzutc()) - self.assertEqual(dt_output, expected) - def test_kwarg_tzinfo(self): self.expected = ( -- 2.26.1