Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
14
def
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
21
class
Fake:
Callers
nothing calls this directly
Calls
3
print
Method · 0.95
Console
Class · 0.90
Foo
Class · 0.70
Tested by
no test coverage detected