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

Function test_width_of_none

tests/test_constrain.py:6–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5
6def test_width_of_none():
7 console = Console()
8 constrain = Constrain(Text("foo"), width=None)
9 min_width, max_width = constrain.__rich_measure__(
10 console, console.options.update_width(80)
11 )
12 assert min_width == 3
13 assert max_width == 3

Callers

nothing calls this directly

Calls 5

__rich_measure__Method · 0.95
ConsoleClass · 0.90
ConstrainClass · 0.90
TextClass · 0.90
update_widthMethod · 0.80

Tested by

no test coverage detected