Function
test_columnize
(capsys: pytest.CaptureFixture[str])
Source from the content-addressed store, hash-verified
| 1439 | |
| 1440 | |
| 1441 | def 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 | |
| 1452 | class HelpCategoriesApp(cmd2.Cmd): |
Callers
nothing calls this directly
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…