rich measure

This commit is contained in:
Will McGugan 2021-03-25 21:08:36 +00:00
parent 27379a8f1a
commit be5e9dca2d
43 changed files with 301 additions and 185 deletions

View file

@ -37,6 +37,6 @@ def test_spinner_render():
def test_rich_measure():
console = Console(width=80, color_system=None, force_terminal=True)
spinner = Spinner("dots", "Foo")
min_width, max_width = Measurement.get(console, spinner, 80)
min_width, max_width = Measurement.get(console, console.options, spinner)
assert min_width == 3
assert max_width == 5