X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/3adcc3e2236cb92b6e2cb80a7cc28fb9c6803e31..ae1911095f3d43c340c2dc2bbeac75f60fc374dd:/tasklib/tests.py?ds=inline diff --git a/tasklib/tests.py b/tasklib/tests.py index 874a047..b0e342d 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -745,6 +745,15 @@ class TaskTest(TasklibTest): t.save() self.assertEqual(len(self.tw.tasks.pending()), 2) + def test_spawned_task_parent(self): + today = datetime.date.today() + t = Task(self.tw, description="brush teeth", + due=today, recur="daily") + t.save() + + spawned = self.tw.tasks.pending().get(due=today) + assert spawned['parent'] == t + def test_modify_number_of_tasks_at_once(self): for i in range(1, 100): Task(self.tw, description="test task %d" % i, tags=['test']).save()