From de1cbcb1caa962e24eeebcc7a3cbd88f33b97639 Mon Sep 17 00:00:00 2001 From: Houkime <> Date: Wed, 14 Jun 2023 11:54:24 +0000 Subject: [PATCH] test(backups): display errors from api --- tests/test_graphql/test_api_backup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_graphql/test_api_backup.py b/tests/test_graphql/test_api_backup.py index 5b9aabf..40c81fa 100644 --- a/tests/test_graphql/test_api_backup.py +++ b/tests/test_graphql/test_api_backup.py @@ -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