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

Function test_columnize

tests/test_cmd2.py:1441–1449  ·  view source on GitHub ↗
(capsys: pytest.CaptureFixture[str])

Source from the content-addressed store, hash-verified

1439
1440
1441def test_columnize(capsys: pytest.CaptureFixture[str]) -> None:
1442 help_app = HelpApp()
1443 items = ["one", "two"]
1444 help_app.columnize(items)
1445 out, _err = capsys.readouterr()
1446
1447 # poutput() adds a newline at the end.
1448 expected = "one two\n"
1449 assert out == expected
1450
1451
1452class HelpCategoriesApp(cmd2.Cmd):

Callers

nothing calls this directly

Calls 2

HelpAppClass · 0.85
columnizeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…