mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 01:58:24 +00:00
rich measure
This commit is contained in:
parent
27379a8f1a
commit
be5e9dca2d
43 changed files with 301 additions and 185 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue