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

Function test_align_middle

tests/test_align.py:62–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60
61
62def test_align_middle():
63 console = Console(file=io.StringIO(), width=10)
64 console.print(Align("foo", vertical="middle"), height=5)
65 expected = " \n \nfoo \n \n \n"
66 result = console.file.getvalue()
67 print(repr(result))
68 assert result == expected
69
70
71def test_align_bottom():

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