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

Function test_align_center

tests/test_align.py:41–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40
41def test_align_center():
42 console = Console(file=io.StringIO(), width=10)
43 console.print(Align("foo", "center"))
44 assert console.file.getvalue() == " foo \n"
45
46
47def test_align_right():

Callers

nothing calls this directly

Calls 3

printMethod · 0.95
ConsoleClass · 0.90
AlignClass · 0.90

Tested by

no test coverage detected