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

Function test_apcustom_usage

tests/test_argparse_utils.py:91–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89
90
91def test_apcustom_usage() -> None:
92 usage = "A custom usage statement"
93 parser = Cmd2ArgumentParser(usage=usage)
94 assert usage in parser.format_help()
95
96
97def test_apcustom_nargs_help_format(cust_app) -> None:

Callers

nothing calls this directly

Calls 2

format_helpMethod · 0.95
Cmd2ArgumentParserClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…