mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Verify error on log of recurring or waiting task
This commit is contained in:
parent
325b01c381
commit
cfe57c3870
1 changed files with 9 additions and 0 deletions
|
@ -47,6 +47,15 @@ class TestLogCommand(TestCase):
|
|||
code, out, err = self.t("completed")
|
||||
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__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue