MCPcopy
hub / github.com/Textualize/rich / test_newline

Function test_newline

tests/test_pretty.py:600–606  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

598
599
600def test_newline() -> None:
601 console = Console(color_system=None)
602 console.begin_capture()
603 console.print(Pretty((1,), insert_line=True, expand_all=True))
604 result = console.end_capture()
605 expected = "\n(\n 1,\n)\n"
606 assert result == expected
607
608
609def test_empty_repr() -> None:

Callers

nothing calls this directly

Calls 5

begin_captureMethod · 0.95
printMethod · 0.95
end_captureMethod · 0.95
ConsoleClass · 0.90
PrettyClass · 0.90

Tested by

no test coverage detected