mirror of
https://github.com/Textualize/rich.git
synced 2025-08-31 07:27:29 +00:00
docs version bump
This commit is contained in:
parent
97aa70c0a4
commit
f0ab3f4fff
9 changed files with 60 additions and 19 deletions
11
tests/test_constrain.py
Normal file
11
tests/test_constrain.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
from rich.console import Console
|
||||
from rich.constrain import Constrain
|
||||
from rich.text import Text
|
||||
|
||||
|
||||
def test_width_of_none():
|
||||
console = Console()
|
||||
constrain = Constrain(Text("foo"), width=None)
|
||||
min_width, max_width = constrain.__rich_measure__(console, 80)
|
||||
assert min_width == 3
|
||||
assert max_width == 3
|
Loading…
Add table
Add a link
Reference in a new issue