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

Function test_rich_cast_container

tests/test_protocol.py:36–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35
36def test_rich_cast_container():
37 foo = Foo()
38 console = Console(file=io.StringIO(), legacy_windows=False)
39 console.print(Panel.fit(foo, padding=0))
40 assert console.file.getvalue() == "╭───╮\n│Foo│\n╰───╯\n"
41
42
43def test_abc():

Callers

nothing calls this directly

Calls 4

printMethod · 0.95
ConsoleClass · 0.90
FooClass · 0.70
fitMethod · 0.45

Tested by

no test coverage detected