From: Tomas Babej Date: Thu, 6 Aug 2015 06:10:48 +0000 (+0200) Subject: tests: Add test for adding a completed task X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/b0013c774cf1667bbde77a5515984e27635dfc1f?hp=42baab3573bc84a4663c538afb0280787db952f1 tests: Add test for adding a completed task --- diff --git a/tasklib/tests.py b/tasklib/tests.py index adcb3c8..f63fbb4 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -284,6 +284,10 @@ class TaskTest(TasklibTest): self.assertRaises(Task.CompletedTask, t.start) + def test_add_completed_task(self): + t = Task(self.tw, description="test", status="completed", end="now") + t.save() + def test_complete_deleted_task(self): t = Task(self.tw, description="test task") t.save()