mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Unittest - No need to check for exit code as it's already implicit
This commit is contained in:
parent
1abd5460d7
commit
6fc907ffd5
2 changed files with 2 additions and 4 deletions
|
@ -40,8 +40,7 @@ class TestBug1359(TestCase):
|
||||||
|
|
||||||
def test_add_hyphenated(self):
|
def test_add_hyphenated(self):
|
||||||
""""one-two-three" in description triggers Malformed ID error"""
|
""""one-two-three" in description triggers Malformed ID error"""
|
||||||
code, out, err = self.t(("add", "one-two-three.ca"))
|
self.t(("add", "one-two-three.ca"))
|
||||||
self.assertEqual(code, 0)
|
|
||||||
|
|
||||||
code, out, err = self.t(("1", "info"))
|
code, out, err = self.t(("1", "info"))
|
||||||
self.assertIn("one-two-three.ca", out)
|
self.assertIn("one-two-three.ca", out)
|
||||||
|
|
|
@ -42,8 +42,7 @@ class TestBug268(TestCase):
|
||||||
"""escaped backslashes do not work with 'modify'"""
|
"""escaped backslashes do not work with 'modify'"""
|
||||||
|
|
||||||
self.t(("add", "a", "b", "or", "c"))
|
self.t(("add", "a", "b", "or", "c"))
|
||||||
code, out, err = self.t(("1", "modify", "/a\\ b/a\\/b/"))
|
self.t(("1", "modify", "/a\\ b/a\\/b/"))
|
||||||
self.assertEqual(code, 0)
|
|
||||||
|
|
||||||
code, out, err = self.t(("1", "info"))
|
code, out, err = self.t(("1", "info"))
|
||||||
self.assertIn("a/b or c", out)
|
self.assertIn("a/b or c", out)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue