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

Function test_rich_pretty

tests/test_repr.py:137–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135
136
137def test_rich_pretty() -> None:
138 console = Console()
139 with console.capture() as capture:
140 console.print(Foo("hello", bar=3))
141 result = capture.get()
142 expected = "Foo('hello', 'hello', bar=3, egg=1)\n"
143 assert result == expected
144
145
146def test_rich_pretty_angular() -> None:

Callers

nothing calls this directly

Calls 5

captureMethod · 0.95
printMethod · 0.95
ConsoleClass · 0.90
FooClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected