mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
zcmdcat: zsh completion: group commands by category
This commit is contained in:
parent
5ca1dd540e
commit
c78fc47402
4 changed files with 59 additions and 10 deletions
|
@ -63,6 +63,22 @@ class TestAliasesCompletion(TestCase):
|
|||
self.assertIn("information", out)
|
||||
self.assertNotIn("samplealias", out)
|
||||
|
||||
class TestZshCompletion(TestCase):
|
||||
"""Test _zshcommands and related completion subcommands"""
|
||||
|
||||
def setUp(self):
|
||||
self.t = Task()
|
||||
self.t.config("report.foobar.columns", "id")
|
||||
|
||||
def test_categories(self):
|
||||
"""test _zshcommands categories"""
|
||||
code, out, err = self.t("_zshcommands")
|
||||
|
||||
self.assertIn("\nfoobar:report:", out)
|
||||
self.assertIn("\ninformation:interrogator:", out)
|
||||
self.assertIn("\nexport:migration:", out)
|
||||
self.assertNotIn(":unassigned:", out)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue