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

Function test_measure

tests/test_align.py:107–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105
106
107def test_measure():
108 console = Console(file=io.StringIO(), width=20)
109 _min, _max = Measurement.get(console, console.options, Align("foo bar", "left"))
110 assert _min == 3
111 assert _max == 7
112
113
114def test_align_no_pad():

Callers

nothing calls this directly

Calls 3

ConsoleClass · 0.90
AlignClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected