mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +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
|
@ -52,7 +52,7 @@ class TestVersion(TestCase):
|
|||
|
||||
def test_copyright_up_to_date(self):
|
||||
"""Copyright is current"""
|
||||
code, out, err = self.t(("version",))
|
||||
code, out, err = self.t("version")
|
||||
|
||||
expected = "Copyright \(C\) \d{4} - %d" % (datetime.now().year,)
|
||||
self.assertRegexpMatches(out, expected)
|
||||
|
@ -70,7 +70,7 @@ class TestVersion(TestCase):
|
|||
|
||||
def test_version(self):
|
||||
"""version command outputs expected version and license"""
|
||||
code, out, err = self.t(("version",))
|
||||
code, out, err = self.t("version")
|
||||
|
||||
expected = "task {0}".format(self.slurp())
|
||||
self.assertIn(expected, out)
|
||||
|
@ -84,7 +84,7 @@ class TestVersion(TestCase):
|
|||
|
||||
def test_under_version(self):
|
||||
"""_version outputs expected version and syntax"""
|
||||
code, out, err = self.t(("_version",))
|
||||
code, out, err = self.t("_version")
|
||||
|
||||
# version = "x.x.x (git-hash)" or simply "x.x.x"
|
||||
# corresponding to "compiled from git" or "compiled from tarball"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue