From 4797f4da3521bda4f9c4162d610afe260f89a559 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Mon, 9 Aug 2021 16:11:51 +0200 Subject: Fix tests to load dates as dates, not datetimes --- tests/test_types.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_types.py b/tests/test_types.py index 21a6d52..344037b 100644 --- a/tests/test_types.py +++ b/tests/test_types.py @@ -296,10 +296,10 @@ class testTypes(unittest.TestCase): self.assertEqual(v, today) v = checker.load("2020-01-01") - self.assertEqual(v, datetime.datetime(2020, 1, 1)) + self.assertEqual(v, datetime.date(2020, 1, 1)) v = checker.load("2020-01-01 10:00") - self.assertEqual(v, datetime.datetime(2020, 1, 1, 10, 0)) + self.assertEqual(v, datetime.date(2020, 1, 1)) for d in ("today", "2020-13-01"): with self.assertRaises(types.LesanaValueError): -- cgit v1.2.3