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

Function test_render_double_branch

tests/test_tree.py:30–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29
30def test_render_double_branch():
31 tree = Tree("foo")
32 tree.add("bar")
33 tree.add("baz")
34 console = Console(color_system=None, width=20)
35 console.begin_capture()
36 console.print(tree)
37 result = console.end_capture()
38 print(repr(result))
39 expected = "foo\n├── bar\n└── baz\n"
40 assert result == expected
41
42
43def test_render_ascii():

Callers

nothing calls this directly

Calls 7

addMethod · 0.95
begin_captureMethod · 0.95
printMethod · 0.95
end_captureMethod · 0.95
TreeClass · 0.90
ConsoleClass · 0.90
printFunction · 0.50

Tested by

no test coverage detected