mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-23 01:06:43 +00:00
test(backups): display errors from api
This commit is contained in:
parent
f1654c699c
commit
aa9d082adc
|
@ -42,6 +42,10 @@ def api_backup(authorized_client, service):
|
|||
def get_data(response):
|
||||
assert response.status_code == 200
|
||||
response = response.json()
|
||||
if (
|
||||
"errors" in response.keys()
|
||||
): # convenience for debugging, this will display error
|
||||
assert response["errors"] == []
|
||||
assert response["data"] is not None
|
||||
data = response["data"]
|
||||
return data
|
||||
|
|
Loading…
Reference in a new issue