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

Function test_align_center_middle

tests/test_align.py:80–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78
79
80def test_align_center_middle():
81 console = Console(file=io.StringIO(), width=10)
82 console.print(Align("foo\nbar", "center", vertical="middle"), height=5)
83 expected = " \n foo \n bar \n \n \n"
84 result = console.file.getvalue()
85 print(repr(result))
86 assert result == expected
87
88
89def test_align_fit():

Callers

nothing calls this directly

Calls 4

printMethod · 0.95
ConsoleClass · 0.90
AlignClass · 0.90
printFunction · 0.50

Tested by

no test coverage detected