Improve media test
This commit is contained in:
pare
85ca599935
commit
575d05fe0c
S'han modificat 1 arxius amb 1 adicions i 1 eliminacions
|
@ -21,7 +21,7 @@ def test_media_post(api, sensitive):
|
||||||
try:
|
try:
|
||||||
assert status['sensitive'] == sensitive
|
assert status['sensitive'] == sensitive
|
||||||
assert status['media_attachments']
|
assert status['media_attachments']
|
||||||
assert status['media_attachments'][0]['description']
|
assert status['media_attachments'][0]['description'] == "John Lennon doing a funny walk"
|
||||||
assert status['media_attachments'][0]['meta']['focus']['x'] == -0.5
|
assert status['media_attachments'][0]['meta']['focus']['x'] == -0.5
|
||||||
assert status['media_attachments'][0]['meta']['focus']['y'] == 0.3
|
assert status['media_attachments'][0]['meta']['focus']['y'] == 0.3
|
||||||
finally:
|
finally:
|
||||||
|
|
Loading…
Referencia en una nova incidència