MCPcopy
hub / github.com/pallets/click / test_help_formatter_write_text

Function test_help_formatter_write_text

tests/test_formatting.py:429–436  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

427
428
429def test_help_formatter_write_text():
430 text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit"
431 formatter = click.HelpFormatter(width=len(" Lorem ipsum dolor sit amet,"))
432 formatter.current_indent = 2
433 formatter.write_text(text)
434 actual = formatter.getvalue()
435 expected = " Lorem ipsum dolor sit amet,\n consectetur adipiscing elit\n"
436 assert actual == expected
437
438
439@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

write_textMethod · 0.95
getvalueMethod · 0.95

Tested by

no test coverage detected