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

Function test_rich_cast

tests/test_protocol.py:14–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def test_rich_cast():
15 foo = Foo()
16 console = Console(file=io.StringIO())
17 console.print(foo)
18 assert console.file.getvalue() == "Foo\n"
19
20
21class Fake:

Callers

nothing calls this directly

Calls 3

printMethod · 0.95
ConsoleClass · 0.90
FooClass · 0.70

Tested by

no test coverage detected