Test: Added edit test of a fully-loaded task

This commit is contained in:
Paul Beckingham 2015-07-18 14:57:26 -04:00
parent 9541a63321
commit 1506ae9ff1

View file

@ -74,6 +74,15 @@ class TestTaskEdit(TestCase):
code, out, err = self.t()
self.assertIn("Lost", out)
def test_fully_loaded_task_edit(self):
"""task edit - exercise all attributes possible"""
self.t("add foo project:P +tag priority:H active:now due:eom wait:eom scheduled:eom recur:P1M until:eoy")
self.t("1 annotate bar", input="n\n")
# Does not fail
self.t("1 edit")
if __name__ == "__main__":
from simpletap import TAPTestRunner