mirror of
https://github.com/Textualize/rich.git
synced 2025-08-04 18:18:22 +00:00
tests
This commit is contained in:
parent
05a26fa433
commit
67599f772a
2 changed files with 2 additions and 2 deletions
|
@ -7,10 +7,8 @@ from dataclasses import dataclass, field
|
|||
from datetime import timedelta
|
||||
from math import ceil
|
||||
from threading import Event, RLock, Thread
|
||||
from time import monotonic
|
||||
from typing import (
|
||||
IO,
|
||||
TYPE_CHECKING,
|
||||
Any,
|
||||
Callable,
|
||||
Deque,
|
||||
|
|
|
@ -143,8 +143,10 @@ def make_progress() -> Progress:
|
|||
|
||||
def render_progress() -> str:
|
||||
progress = make_progress()
|
||||
progress.start() # superfluous noop
|
||||
with progress:
|
||||
pass
|
||||
progress.stop() # superfluous noop
|
||||
progress_render = progress.console.file.getvalue()
|
||||
return progress_render
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue