docs version bump

This commit is contained in:
Will McGugan 2020-08-25 17:09:56 +01:00
parent 97aa70c0a4
commit f0ab3f4fff
9 changed files with 60 additions and 19 deletions

11
tests/test_constrain.py Normal file
View 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