tests: Update commands.t to reflect new signature of CmdAdd

The 'task add' command now accepts context.
This commit is contained in:
Tomas Babej 2021-01-28 01:23:01 -05:00
parent 5716f5abb7
commit 26fb4521fe

View file

@ -42,14 +42,14 @@ class TestCommands(TestCase):
def test_command_dna(self):
"""Verify 'add', 'modify', 'list' dna"""
code, out, err = self.t("commands")
self.assertRegex(out, "add\s+operation\s+RW\s+Mods\s+Adds a new task")
self.assertRegex(out, "add\s+operation\s+RW\s+Ctxt\s+Mods\s+Adds a new task")
self.assertRegex(out, "list\s+report\s+RO\s+ID\s+GC\s+Ctxt\s+Filt\s+Most details of")
self.assertRegex(out, "modify\s+operation\s+RW\s+Filt\s+Mods\s+Modifies the")
def test_command_dna_color(self):
"""Verify 'add', 'modify', 'list' dna"""
code, out, err = self.t("commands rc._forcecolor:on")
self.assertRegex(out, "add\s+operation\s+RW\s+Mods\s+Adds a new task")
self.assertRegex(out, "add\s+operation\s+RW\s+Ctxt\s+Mods\s+Adds a new task")
self.assertRegex(out, "list\s+report\s+RO\s+ID\s+GC\s+Ctxt\s+Filt\s+Most details of")
self.assertRegex(out, "modify\s+operation\s+RW\s+Filt\s+Mods\s+Modifies the")