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
|
@ -41,15 +41,15 @@ class TestFilterPrefix(TestCase):
|
|||
"""Executed once before any test in the class"""
|
||||
cls.t = Task()
|
||||
cls.t.config("verbose", "nothing")
|
||||
cls.t(('add', 'foo'))
|
||||
cls.t('add foo')
|
||||
|
||||
def test_success(self):
|
||||
"""Test successful search returns zero."""
|
||||
code, out, err = self.t(('list', '/foo/'))
|
||||
code, out, err = self.t('list /foo/')
|
||||
|
||||
def test_failure(self):
|
||||
"""Test failed search returns non-zero."""
|
||||
code, out, err = self.t.runError(('list', '/bar/'))
|
||||
code, out, err = self.t.runError('list /bar/')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue