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

Function test_help_verbose_with_fake_command

tests/test_cmd2.py:1410–1418  ·  view source on GitHub ↗

Verify that only actual command functions appear in verbose output.

(capsys)

Source from the content-addressed store, hash-verified

1408
1409
1410def test_help_verbose_with_fake_command(capsys) -> None:
1411 """Verify that only actual command functions appear in verbose output."""
1412 help_app = HelpApp()
1413
1414 cmds = ["alias", "fake_command"]
1415 help_app._print_documented_command_topics(help_app.DEFAULT_CATEGORY, cmds, verbose=True)
1416 out, _err = capsys.readouterr()
1417 assert cmds[0] in out
1418 assert cmds[1] not in out
1419
1420
1421def test_render_columns_no_strs(help_app: HelpApp) -> None:

Callers

nothing calls this directly

Calls 2

HelpAppClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…