summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2021-08-09 16:11:51 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2021-08-09 16:11:51 +0200
commit4797f4da3521bda4f9c4162d610afe260f89a559 (patch)
tree151422c49d92963248858e86e3137f907b89109d
parentdaf1ea6d01bf39318429331b86eabf6a4cfcc739 (diff)
Fix tests to load dates as dates, not datetimes
-rw-r--r--tests/test_types.py4
1 files 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):