From: Tomas Babej Date: Sat, 7 Feb 2015 11:19:55 +0000 (+0100) Subject: Tests: Test generation of recurrent tasks X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/27f93e251029f1d93c92d8e1ac6a254bdb70ecdd?ds=inline Tests: Test generation of recurrent tasks --- diff --git a/tasklib/tests.py b/tasklib/tests.py index f7b9a27..3ff1ebf 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -503,6 +503,12 @@ class TaskTest(TasklibTest): for normalizer in normalizers: normalizer(None) + def test_recurrent_task_generation(self): + today = datetime.date.today() + t = Task(self.tw, description="brush teeth", + due=today, recur="daily") + t.save() + self.assertEqual(len(self.tw.tasks.pending()), 2) class TaskFromHookTest(TasklibTest):