Skip to content

Commit 850b234

Browse files
committed
Changed unit test to handle docstring lines that start with :
1 parent 5d8ac43 commit 850b234

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_cmd2.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ def test_base_help_verbose(base_app):
4646
expected = normalize(BASE_HELP_VERBOSE)
4747
assert out == expected
4848

49+
# Make sure :param type lines are filtered out of help summary
50+
help_doc = base_app.do_help.__func__.__doc__
51+
help_doc += "\n:param fake param"
52+
base_app.do_help.__func__.__doc__ = help_doc
53+
4954
out = run_cmd(base_app, 'help --verbose')
5055
assert out == expected
5156

0 commit comments

Comments
 (0)