From 945af7d4fcb8195b5ee88a37c109cebc7ad1b210 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Mon, 23 May 2016 11:40:42 +0200 Subject: [PATCH 1/1] tests: Do not use string-based dates for compatibility reasons --- tasklib/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasklib/tests.py b/tasklib/tests.py index 3656bbf..5a8f576 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -100,7 +100,7 @@ class TaskFilterTest(TasklibTest): self.assertEqual(len(self.tw.tasks.waiting()), 0) t = self.tw.tasks.all()[0] - t['wait'] = 'tomorrow' + t['wait'] = datetime.datetime.now() + datetime.timedelta(days=1) t.save() self.assertEqual(len(self.tw.tasks.waiting()), 1) -- 2.39.5