diff options
author | Lorenz Diener <[email protected]> | 2019-10-12 00:02:56 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2019-10-12 00:02:56 +0200 |
commit | 8a2452c6be948dc7e582750309c0ef67279f7e42 (patch) | |
tree | b54da76de3a1b90ade7792bf6b4d72ed8874c4ee | |
parent | 437f68c29a18303de3c75962021bbe030b2cf85c (diff) | |
download | mastodon.py-8a2452c6be948dc7e582750309c0ef67279f7e42.tar.gz |
Improve card test
-rw-r--r-- | tests/test_status.py | 4 |
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 | ||