mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Unittest - Remove redundant checks
self.t == self.runSuccess -> fails if exit code is != 0
This commit is contained in:
parent
27f21d375b
commit
dffd4c0477
1 changed files with 0 additions and 6 deletions
|
@ -19,33 +19,27 @@ class Test1418(TestCase):
|
|||
"""Check that you can search with a slash (/)"""
|
||||
command = ("add", "foo/bar")
|
||||
code, out, err = self.t(command)
|
||||
self.assertEquals(code, 0)
|
||||
|
||||
command = ("foo/bar",)
|
||||
code, out, err = self.t(command)
|
||||
self.assertEquals(code, 0)
|
||||
self.assertIn("foo/bar", out)
|
||||
|
||||
def test_minus_in_description(self):
|
||||
"""Check that you can search with a minus (-)"""
|
||||
command = ("add", "foo-")
|
||||
code, out, err = self.t(command)
|
||||
self.assertEquals(code, 0)
|
||||
|
||||
command = ("foo-",)
|
||||
code, out, err = self.t(command)
|
||||
self.assertEquals(code, 0)
|
||||
self.assertIn("foo-", out)
|
||||
|
||||
def test_plus_in_description(self):
|
||||
"""Check that you can search with a plus (+)"""
|
||||
command = ("add", "foo+")
|
||||
code, out, err = self.t(command)
|
||||
self.assertEquals(code, 0)
|
||||
|
||||
command = ("foo+",)
|
||||
code, out, err = self.t(command)
|
||||
self.assertEquals(code, 0)
|
||||
self.assertIn("foo+", out)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue