mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Change most tests to use "add test" instead of split arguments
This commit is contained in:
parent
d711bda35c
commit
27b8cabac1
76 changed files with 1179 additions and 1245 deletions
10
test/edit.t
10
test/edit.t
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue