MCPcopy Index your code
hub / github.com/python-cmd2/cmd2 / test_base_help_verbose

Function test_base_help_verbose

tests/test_cmd2.py:94–107  ·  view source on GitHub ↗
(base_app)

Source from the content-addressed store, hash-verified

92
93
94def test_base_help_verbose(base_app) -> None:
95 out, _err = run_cmd(base_app, "help -v")
96 assert base_app.last_result is True
97 verify_help_text(base_app, out)
98
99 # Make sure :param type lines are filtered out of help summary
100 help_doc = base_app.do_help.__func__.__doc__
101 help_doc += "\n:param fake param"
102 base_app.do_help.__func__.__doc__ = help_doc
103
104 out, _err = run_cmd(base_app, "help --verbose")
105 assert base_app.last_result is True
106 verify_help_text(base_app, out)
107 assert ":param" not in "".join(out)
108
109
110def test_base_argparse_help(base_app) -> None:

Callers

nothing calls this directly

Calls 2

run_cmdFunction · 0.85
verify_help_textFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…