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

Function test_rich_pretty_angular

tests/test_repr.py:146–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144
145
146def test_rich_pretty_angular() -> None:
147 console = Console()
148 with console.capture() as capture:
149 console.print(Bar("hello", bar=3))
150 result = capture.get()
151 expected = "<Bar 'hello' 'hello' bar=3 egg=1>\n"
152 assert result == expected

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected