Test: Verify error on log of recurring or waiting task
This commit is contained in:
@@ -47,6 +47,15 @@ class TestLogCommand(TestCase):
|
|||||||
code, out, err = self.t("completed")
|
code, out, err = self.t("completed")
|
||||||
self.assertIn("This is a test", out)
|
self.assertIn("This is a test", out)
|
||||||
|
|
||||||
|
def test_log_wait(self):
|
||||||
|
"""Verify that you cannot log a waited task"""
|
||||||
|
code, out, err = self.t.runError("log This is a test wait:eoy")
|
||||||
|
self.assertIn("You cannot log waiting tasks.", err)
|
||||||
|
|
||||||
|
def test_log_recur(self):
|
||||||
|
"""Verify that you cannot log a recurring task"""
|
||||||
|
code, out, err = self.t.runError("log This is a test due:eom recur:weekly")
|
||||||
|
self.assertIn("You cannot log recurring tasks.", err)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
from simpletap import TAPTestRunner
|
from simpletap import TAPTestRunner
|
||||||
|
|||||||
Reference in New Issue
Block a user