Test: Change most tests to use "add test" instead of split arguments

This commit is contained in:
Renato Alves 2015-07-17 19:13:26 +01:00
parent d711bda35c
commit 27b8cabac1
76 changed files with 1179 additions and 1245 deletions

View file

@ -48,13 +48,13 @@ class TestTaskEdit(TestCase):
def test_newline_description_edit(self):
"""task edit - parsing entries containing multiline descriptions"""
self.t(("add", "Hello\nLost"))
self.t('add "Hello\nLost"')
code, out, err = self.t()
self.assertIn("Lost", out)
# Newlines may not be correctly parsed
code, out, err = self.t(("1", "edit"))
code, out, err = self.t("1 edit")
code, out, err = self.t()
self.assertIn("Lost", out)
@ -62,14 +62,14 @@ class TestTaskEdit(TestCase):
def test_newline_annotation_edit(self):
"""task edit - parsing entries containing multiline annotations"""
self.t(("add", "Hello"))
self.t(("1", "annotate", "Something\nLost"))
self.t("add Hello")
self.t('1 annotate "Something\nLost"')
code, out, err = self.t()
self.assertIn("Lost", out)
# Newlines may not be correctly parsed
code, out, err = self.t(("1", "edit"))
code, out, err = self.t("1 edit")
code, out, err = self.t()
self.assertIn("Lost", out)