mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
TW-1652: task rm misparsed
- Thanks to Daniel Shahaf.
This commit is contained in:
parent
bbb0ac3d29
commit
38500fd90b
5 changed files with 34 additions and 15 deletions
14
test/alias.t
14
test/alias.t
|
@ -142,6 +142,20 @@ class TestAliasesCommand(TestCase):
|
|||
code, out, err = self.t("_aliases")
|
||||
self.assertIn("foo", out)
|
||||
|
||||
class TestBug1652(TestCase):
|
||||
def setUp(self):
|
||||
"""Executed before each test in the class"""
|
||||
self.t = Task()
|
||||
self.t("add one")
|
||||
|
||||
def test_odd_alias(self):
|
||||
"""Verify that 'delete' is not lexed further"""
|
||||
self.t.config("alias.rm", "delete")
|
||||
self.t.config("confirmation", "off")
|
||||
code, out, err = self.t("1 rm")
|
||||
self.assertIn("Deleted 1 task.", out)
|
||||
self.assertNotIn("No matches.", out)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue