From 27f93e251029f1d93c92d8e1ac6a254bdb70ecdd Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 7 Feb 2015 12:19:55 +0100 Subject: [PATCH 1/1] Tests: Test generation of recurrent tasks --- tasklib/tests.py | 6 ++++++ 1 file changed, 6 insertions(+) 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): -- 2.39.5