mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 13:23:08 +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
|
@ -53,14 +53,14 @@ class TestAnnotation(TestCase):
|
|||
"""Verify filterless annotation is trapped, declined"""
|
||||
self.t("add foo")
|
||||
|
||||
code, out, err = self.t.runError(("annotate", "bar"), input="no\n")
|
||||
code, out, err = self.t.runError("annotate bar", input="no\n")
|
||||
self.assertIn("Command prevented from running", err)
|
||||
self.assertNotIn("Command prevented from running", out)
|
||||
|
||||
def test_filterless_annotate(self):
|
||||
"""Verify filterless annotation is trapped, overridden"""
|
||||
self.t("add foo")
|
||||
code, out, err = self.t(("annotate", "bar"), input="yes\n")
|
||||
code, out, err = self.t("annotate bar", input="yes\n")
|
||||
|
||||
self.assertNotIn("Command prevented from running", err)
|
||||
self.assertNotIn("Command prevented from running", out)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue