From 4007a111600afa6cc4d24053dc3ef8074aea05b9 Mon Sep 17 00:00:00 2001 From: Isaac Wahhab Date: Sun, 28 Mar 2021 18:41:56 -0700 Subject: [PATCH] Fixing coverage --- tests/test_status.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_status.py b/tests/test_status.py index 1d68b080..43ef94e0 100644 --- a/tests/test_status.py +++ b/tests/test_status.py @@ -12,9 +12,13 @@ def test_status(): ) status = Status("foo", 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) + status.update(spinner="dots2") + assert previous_status_renderable != status.renderable # TODO: Testing output is tricky with threads with status: