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

Function test_small_width

tests/test_pretty.py:267–271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

265
266
267def test_small_width() -> None:
268 test = ["Hello world! 12345"]
269 result = pretty_repr(test, max_width=10)
270 expected = "[\n 'Hello world! 12345'\n]"
271 assert result == expected
272
273
274def test_ansi_in_pretty_repr() -> None:

Callers

nothing calls this directly

Calls 1

pretty_reprFunction · 0.90

Tested by

no test coverage detected