summaryrefslogtreecommitdiff
path: root/tests/test_cmd2.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2018-09-24 20:27:32 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2018-09-24 20:27:32 -0400
commit9e4ea5c2079376a451ccd3c6ae9ec03301164064 (patch)
tree6b761a99a2afa5267314e38e12bafb480c02c221 /tests/test_cmd2.py
parentc8a9a7a9d99c50b069a848a78ac41b2c3de0f7e1 (diff)
parentc8890646d88fab3e07ccd71b30c2fed3785a7d5e (diff)
downloadcmd2-git-9e4ea5c2079376a451ccd3c6ae9ec03301164064.tar.gz
Merge branch 'master' into macro
Diffstat (limited to 'tests/test_cmd2.py')
-rw-r--r--tests/test_cmd2.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py
index 4b0687c9..7a8a52a0 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -46,6 +46,11 @@ def test_base_help_verbose(base_app):
expected = normalize(BASE_HELP_VERBOSE)
assert out == expected
+ # Make sure :param type lines are filtered out of help summary
+ help_doc = base_app.do_help.__func__.__doc__
+ help_doc += "\n:param fake param"
+ base_app.do_help.__func__.__doc__ = help_doc
+
out = run_cmd(base_app, 'help --verbose')
assert out == expected