mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-25 12:17:20 +02:00
Test: Added _show test
This commit is contained in:
parent
e3941b920a
commit
f68911801c
1 changed files with 12 additions and 0 deletions
12
test/show.t
12
test/show.t
|
@ -71,6 +71,18 @@ class TestShowCommand(TestCase):
|
|||
self.assertIn("Your .taskrc file contains these unrecognized variables:\n foo", out)
|
||||
|
||||
|
||||
class TestShowHelperCommand(TestCase):
|
||||
def setUp(self):
|
||||
"""Executed before each test in the class"""
|
||||
self.t = Task()
|
||||
|
||||
def test_show_helper_no_arg(self):
|
||||
"""Verify _show command lists all with no arg provided"""
|
||||
code, out, err = self.t("_show")
|
||||
self.assertIn("debug=no\n", out)
|
||||
self.assertIn("verbose=yes\n", out)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
unittest.main(testRunner=TAPTestRunner())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue