From b0013c774cf1667bbde77a5515984e27635dfc1f Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Thu, 6 Aug 2015 08:10:48 +0200 Subject: [PATCH 1/1] tests: Add test for adding a completed task --- tasklib/tests.py | 4 ++++ 1 file changed, 4 insertions(+) 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() -- 2.39.5