Test: Merged bug.recur.t into recurrence.t

This commit is contained in:
Paul Beckingham 2015-07-23 07:51:41 -04:00
parent 93f1bc531d
commit 13ce276b8c
2 changed files with 10 additions and 56 deletions

View file

@ -264,6 +264,16 @@ class TestAppendPrependRecurrence(TestCase):
code, out, err = self.t("2 prepend PRE", input="y\n")
self.assertIn("Prepended 2 tasks.", out)
class TestNoDueDate(TestCase):
def setUp(self):
"""Executed before each test in the class"""
self.t = Task()
def test_no_due_date(self):
"""Look for an error when adding a recurring task with no due date"""
code, out, err = self.t.runError("add foo recur:daily")
self.assertIn("A recurring task must also have a 'due' date.", err)
# TODO Wait a recurring task
# TODO Upgrade a task to a recurring task