mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Merged bug.recur.t into recurrence.t
This commit is contained in:
parent
93f1bc531d
commit
13ce276b8c
2 changed files with 10 additions and 56 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue