From: Tomas Babej Date: Mon, 23 May 2016 09:40:42 +0000 (+0200) Subject: tests: Do not use string-based dates for compatibility reasons X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/945af7d4fcb8195b5ee88a37c109cebc7ad1b210?hp=--cc tests: Do not use string-based dates for compatibility reasons --- 945af7d4fcb8195b5ee88a37c109cebc7ad1b210 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)