summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTodd Leonhardt <todd.leonhardt@gmail.com>2018-09-24 20:08:04 -0400
committerGitHub <noreply@github.com>2018-09-24 20:08:04 -0400
commita75e42a7928f74d8570bf4eec52435d556a83946 (patch)
tree6fab96cc19137ccdd75b9bd1eb861d45bd60553f /tests
parenta2ad70bd79a78123d2bb67b1ff1ed0b815dd721d (diff)
parentc8890646d88fab3e07ccd71b30c2fed3785a7d5e (diff)
downloadcmd2-git-a75e42a7928f74d8570bf4eec52435d556a83946.tar.gz
Merge branch 'master' into colorize
Diffstat (limited to 'tests')
-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 9cb869bd..6b4dddf6 100644
--- a/tests/test_cmd2.py
+++ b/tests/test_cmd2.py
@@ -47,6 +47,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