mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 19:03:07 +02:00
Test: Added 'udas' and '_udas' command tests
This commit is contained in:
parent
7eba74a0bc
commit
40c472e3d5
1 changed files with 17 additions and 0 deletions
17
test/uda.t
17
test/uda.t
|
@ -47,6 +47,23 @@ class TestBaseUda(TestCase):
|
|||
self.t.config("report.uda.labels", "ID,Extra,Description")
|
||||
|
||||
|
||||
class TestUdaCommand(TestBaseUda):
|
||||
def setUp(self):
|
||||
super(TestUdaCommand, self).setUp()
|
||||
|
||||
def test_uda_command(self):
|
||||
"""The 'udas' command should list 'priority' and 'extra'"""
|
||||
code, out, err = self.t("udas")
|
||||
self.assertIn("priority", out)
|
||||
self.assertIn("extra", out)
|
||||
|
||||
def test_uda_helper_command(self):
|
||||
"""The '_udas' helper command should list 'priority' and 'extra'"""
|
||||
code, out, err = self.t("_udas")
|
||||
self.assertIn("priority", out)
|
||||
self.assertIn("extra", out)
|
||||
|
||||
|
||||
class TestUdaDate(TestBaseUda):
|
||||
def setUp(self):
|
||||
super(TestUdaDate, self).setUp()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue