aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_status.py4
1 files changed, 3 insertions, 1 deletions
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):
37 status = api.status_post("http://example.org/") 37 status = api.status_post("http://example.org/")
38 time.sleep(5) # Card generation may take time 38 time.sleep(5) # Card generation may take time
39 card = api.status_card(status['id']) 39 card = api.status_card(status['id'])
40 print(card) 40
41 try: 41 try:
42 assert card 42 assert card
43 assert card.url == "http://example.org/"
43 finally: 44 finally:
44 api.status_delete(status['id']) 45 api.status_delete(status['id'])
45 46
@@ -52,6 +53,7 @@ def test_status_card_pre_2_9_2(api):
52 card = api.status_card(status['id']) 53 card = api.status_card(status['id'])
53 try: 54 try:
54 assert card 55 assert card
56 assert card.url == "http://example.org/"
55 finally: 57 finally:
56 api.status_delete(status['id']) 58 api.status_delete(status['id'])
57 59
Powered by cgit v1.2.3 (git 2.41.0)