mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Added test for 'task --version'
This commit is contained in:
parent
ffbbf4a5c3
commit
795b11c9c9
1 changed files with 5 additions and 0 deletions
|
@ -109,6 +109,11 @@ class TestVersion(TestCase):
|
|||
code, out, err = self.t.diag()
|
||||
self.assertIn(expected, out)
|
||||
|
||||
def test_version_option(self):
|
||||
"""Verify that 'task --version' returnes something valid"""
|
||||
code, out, err = self.t("--version")
|
||||
self.assertRegexpMatches(out, r'^\d\.\d+\.\d+$')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue