]> git.madduck.net Git - etc/taskwarrior.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

tests: Do not use string-based dates for compatibility reasons
authorTomas Babej <tomasbabej@gmail.com>
Mon, 23 May 2016 09:40:42 +0000 (11:40 +0200)
committerTomas Babej <tomasbabej@gmail.com>
Mon, 23 May 2016 09:40:42 +0000 (11:40 +0200)
tasklib/tests.py

index 3656bbfd325ca4a03e6c113d2649a685870d3de9..5a8f576acd0aa1e6e3bba8567c37d6a78ff35c9c 100644 (file)
@@ -100,7 +100,7 @@ class TaskFilterTest(TasklibTest):
         self.assertEqual(len(self.tw.tasks.waiting()), 0)
 
         t = self.tw.tasks.all()[0]
         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)
         t.save()
 
         self.assertEqual(len(self.tw.tasks.waiting()), 1)