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

Function test_render_single_branch

tests/test_tree.py:18–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18def test_render_single_branch():
19 tree = Tree("foo")
20 tree.add("bar")
21 console = Console(color_system=None, width=20)
22 console.begin_capture()
23 console.print(tree)
24 result = console.end_capture()
25 print(repr(result))
26 expected = "foo\n└── bar\n"
27 assert result == expected
28
29
30def test_render_double_branch():

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