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

Function test_add_split

tests/test_layout.py:16–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14
15
16def test_add_split():
17 layout = Layout()
18 layout.split(Layout(), Layout())
19 assert len(layout.children) == 2
20 layout.add_split(Layout(name="foo"))
21 assert len(layout.children) == 3
22 assert layout.children[2].name == "foo"
23
24
25def test_unsplit():

Callers

nothing calls this directly

Calls 3

splitMethod · 0.95
add_splitMethod · 0.95
LayoutClass · 0.90

Tested by

no test coverage detected