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

Function test_pprint_max_string

tests/test_pretty.py:578–582  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

576
577
578def test_pprint_max_string() -> None:
579 console = Console(color_system=None)
580 console.begin_capture()
581 pprint(["Hello" * 20], console=console, max_string=8)
582 assert console.end_capture() == """['HelloHel'+92]\n"""
583
584
585def test_tuples() -> 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