mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-23 05:27:47 +02:00
Test: Converted to use cleaner command to run task
This commit is contained in:
parent
6d49f6389e
commit
1f78a2149f
3 changed files with 19 additions and 19 deletions
|
@ -43,15 +43,15 @@ class TestPrepend(TestCase):
|
|||
|
||||
def test_prepend(self):
|
||||
"""verify prepend command"""
|
||||
self.t(("add", "bar"))
|
||||
self.t(("1", "prepend", "foo"))
|
||||
code, out, err = self.t(("_get", "1.description"))
|
||||
self.t("add bar")
|
||||
self.t("1 prepend foo")
|
||||
code, out, err = self.t("_get 1.description")
|
||||
self.assertIn("foo bar", out)
|
||||
|
||||
def test_prepend_nothing(self):
|
||||
"""verify prepend of nothing is an error"""
|
||||
self.t(("add", "bar"))
|
||||
code, out, err = self.t.runError(("1", "prepend"))
|
||||
self.t("add bar")
|
||||
code, out, err = self.t.runError("1 prepend")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue