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

Function test_abc

tests/test_protocol.py:43–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41
42
43def test_abc():
44 foo = Foo()
45 assert isinstance(foo, RichRenderable)
46 assert isinstance(Text("hello"), RichRenderable)
47 assert isinstance(Panel("hello"), RichRenderable)
48 assert not isinstance(foo, str)
49 assert not isinstance("foo", RichRenderable)
50 assert not isinstance([], RichRenderable)
51
52
53def test_cast_deep():

Callers

nothing calls this directly

Calls 3

TextClass · 0.90
PanelClass · 0.90
FooClass · 0.70

Tested by

no test coverage detected