Verify that only actual command functions appear in verbose output.
(capsys)
| 1408 | |
| 1409 | |
| 1410 | def 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 | |
| 1421 | def test_render_columns_no_strs(help_app: HelpApp) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…