test(backups): display errors from api

pull/35/head
Houkime 2023-06-14 11:54:24 +00:00 committed by Inex Code
parent cfda6b0810
commit de1cbcb1ca
1 changed files with 4 additions and 0 deletions

View File

@ -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