From 8a2452c6be948dc7e582750309c0ef67279f7e42 Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 12 Oct 2019 00:02:56 +0200 Subject: Improve card test --- tests/test_status.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_status.py b/tests/test_status.py index 1006d51..764cd24 100644 --- a/tests/test_status.py +++ b/tests/test_status.py @@ -37,9 +37,10 @@ def test_status_card(api): status = api.status_post("http://example.org/") time.sleep(5) # Card generation may take time card = api.status_card(status['id']) - print(card) + try: assert card + assert card.url == "http://example.org/" finally: api.status_delete(status['id']) @@ -52,6 +53,7 @@ def test_status_card_pre_2_9_2(api): card = api.status_card(status['id']) try: assert card + assert card.url == "http://example.org/" finally: api.status_delete(status['id']) -- cgit v1.2.3