mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 01:58:24 +00:00
live refactor
This commit is contained in:
parent
0a54346bda
commit
122b8131bb
24 changed files with 412 additions and 299 deletions
|
@ -19,3 +19,13 @@ def test_status():
|
|||
# TODO: Testing output is tricky with threads
|
||||
with status:
|
||||
sleep(0.2)
|
||||
|
||||
|
||||
def test_renderable():
|
||||
console = Console(
|
||||
color_system=None, width=80, legacy_windows=False, get_time=lambda: 0.0
|
||||
)
|
||||
status = Status("foo", console=console)
|
||||
console.begin_capture()
|
||||
console.print(status)
|
||||
assert console.end_capture() == "⠋ foo\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue