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

Function test_unsplit

tests/test_layout.py:25–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24
25def test_unsplit():
26 layout = Layout()
27 layout.split(Layout(), Layout())
28 assert len(layout.children) == 2
29
30 layout.unsplit()
31 assert len(layout.children) == 0
32
33
34@pytest.mark.skipif(sys.platform == "win32", reason="does not run on windows")

Callers

nothing calls this directly

Calls 3

splitMethod · 0.95
unsplitMethod · 0.95
LayoutClass · 0.90

Tested by

no test coverage detected