summaryrefslogtreecommitdiff
path: root/tests/test_cmd2.py
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-10-03 08:41:03 -0400
committerGitHub <noreply@github.com>2018-10-03 08:41:03 -0400
commit418f63acbc5e2706cd90cfe20ee9e8b0285f930b (patch)
tree197571f4bb4e879bf6af7bc88c7d7b66a1df72a6 /tests/test_cmd2.py
parent60bf3aa5385f4c6dde6396c48262ae7d5177fd0c (diff)
parentfadb8d3d005f36d9945a4680f799bbdf730da67b (diff)
downloadcmd2-git-418f63acbc5e2706cd90cfe20ee9e8b0285f930b.tar.gz
Merge branch 'master' into py_enhancements
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r--tests/test_cmd2.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index dd89dd52..a64f21e4 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -1236,6 +1236,11 @@ class HelpCategoriesApp(cmd2.Cmd):
"""This command does diddly"""
pass
+ # This command will be in the "Some Category" section of the help menu even though it has no docstring
+ @cmd2.with_category("Some Category")
+ def do_cat_nodoc(self, arg):
+ pass
+
def do_squat(self, arg):
"""This docstring help will never be shown because the help_squat method overrides it."""
pass
@@ -1269,7 +1274,7 @@ edit squat
Some Category
=============
-diddly
+cat_nodoc diddly
Other
=====
@@ -1292,6 +1297,7 @@ squat This command does diddly squat...
Some Category
================================================================================
+cat_nodoc
diddly This command does diddly
Other