MCPcopy Create free account
hub / github.com/python-cmd2/cmd2 / test_render_columns_too_wide

Function test_render_columns_too_wide

tests/test_cmd2.py:1433–1438  ·  view source on GitHub ↗
(help_app: HelpApp)

Source from the content-addressed store, hash-verified

1431
1432
1433def test_render_columns_too_wide(help_app: HelpApp) -> None:
1434 commands = ["kind_of_long_string", "a_slightly_longer_string"]
1435 result = help_app.render_columns(commands, display_width=10)
1436
1437 expected = "kind_of_long_string \na_slightly_longer_string"
1438 assert result == expected
1439
1440
1441def test_columnize(capsys: pytest.CaptureFixture[str]) -> None:

Callers

nothing calls this directly

Calls 1

render_columnsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…