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

Function test_pprint_max_items

tests/test_pretty.py:571–575  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

569
570
571def test_pprint_max_items() -> None:
572 console = Console(color_system=None)
573 console.begin_capture()
574 pprint({"foo": 1, "bar": 2, "egg": 3}, console=console, max_length=2)
575 assert console.end_capture() == """{'foo': 1, 'bar': 2, ... +1}\n"""
576
577
578def test_pprint_max_string() -> 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