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

Function test_align_top

tests/test_align.py:53–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52
53def test_align_top():
54 console = Console(file=io.StringIO(), width=10)
55 console.print(Align("foo", vertical="top"), height=5)
56 expected = "foo \n \n \n \n \n"
57 result = console.file.getvalue()
58 print(repr(result))
59 assert result == expected
60
61
62def test_align_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