Fixing coverage

This commit is contained in:
Isaac Wahhab 2021-03-28 18:41:56 -07:00
parent e491f423e2
commit 4007a11160
1 changed files with 5 additions and 1 deletions

View File

@ -12,9 +12,13 @@ def test_status():
) )
status = Status("foo", console=console) status = Status("foo", console=console)
assert status.console == console assert status.console == console
status.update(status="bar", spinner="dots2", spinner_style="red", speed=2.0) previous_status_renderable = status.renderable
status.update(status="bar", spinner_style="red", speed=2.0)
assert previous_status_renderable == status.renderable
assert isinstance(status.renderable, Spinner) assert isinstance(status.renderable, Spinner)
status.update(spinner="dots2")
assert previous_status_renderable != status.renderable
# TODO: Testing output is tricky with threads # TODO: Testing output is tricky with threads
with status: with status: