Improve card test
This commit is contained in:
pare
437f68c29a
commit
8a2452c6be
S'han modificat 1 arxius amb 3 adicions i 1 eliminacions
|
@ -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'])
|
||||
|
||||
|
|
Loading…
Referencia en una nova incidència