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

Function test_align_right_style

tests/test_align.py:95–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

93
94
95def test_align_right_style():
96 console = Console(
97 file=io.StringIO(),
98 width=10,
99 color_system="truecolor",
100 force_terminal=True,
101 _environ={},
102 )
103 console.print(Align("foo", "right", style="on blue"))
104 assert console.file.getvalue() == "\x1b[44m \x1b[0m\x1b[44mfoo\x1b[0m\n"
105
106
107def test_measure():

Callers

nothing calls this directly

Calls 3

printMethod · 0.95
ConsoleClass · 0.90
AlignClass · 0.90

Tested by

no test coverage detected