mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Tests: Combined two almost identical tests into one
This commit is contained in:
parent
ec1323d9ee
commit
246c3601be
1 changed files with 2 additions and 6 deletions
|
@ -83,7 +83,7 @@ class TestVersion(TestCase):
|
|||
return hash.rstrip("\n")
|
||||
|
||||
def test_under_version(self):
|
||||
"""_version outputs expected version and syntax"""
|
||||
"""_version and diagnostics output expected version and syntax"""
|
||||
code, out, err = self.t("_version")
|
||||
|
||||
# version = "x.x.x (git-hash)" or simply "x.x.x"
|
||||
|
@ -102,12 +102,8 @@ class TestVersion(TestCase):
|
|||
ver_expected = self.slurp()
|
||||
self.assertEqual(ver_expected, ver)
|
||||
|
||||
def test_task_git_version(self):
|
||||
"""Task binary matches the current git commit"""
|
||||
expected = "Commit: {0}".format(self.slurp_git())
|
||||
|
||||
code, out, err = self.t.diag()
|
||||
self.assertIn(expected, out)
|
||||
self.assertIn(ver_expected, out)
|
||||
|
||||
def test_version_option(self):
|
||||
"""Verify that 'task --version' returns something valid"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue