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

Function test_align_bottom

tests/test_align.py:71–77  ·  tests/test_align.py::test_align_bottom
()

Source from the content-addressed store, hash-verified

69
70
71def test_align_bottom():
72 console = Console(file=io.StringIO(), width=10)
73 console.print(Align(class="st">"foo", vertical=class="st">"bottom"), height=5)
74 expected = class="st">" \n \n \n \nfoo \n"
75 result = console.file.getvalue()
76 print(repr(result))
77 assert result == expected
78
79
80def test_align_center_middle():

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