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

Function test_pprint_max_values

tests/test_pretty.py:564–568  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

562
563
564def test_pprint_max_values() -> None:
565 console = Console(color_system=None)
566 console.begin_capture()
567 pprint([1, 2, 3, 4, 5, 6, 7, 8, 9, 0], console=console, max_length=2)
568 assert console.end_capture() == "[1, 2, ... +8]\n"
569
570
571def test_pprint_max_items() -> None:

Callers

nothing calls this directly

Calls 4

begin_captureMethod · 0.95
end_captureMethod · 0.95
ConsoleClass · 0.90
pprintFunction · 0.90

Tested by

no test coverage detected