From 2da84470dd8ad2ffa3f0b619e835b7fdd95bb6bb Mon Sep 17 00:00:00 2001 From: Sasha Romijn Date: Mon, 14 Feb 2022 20:23:33 +0100 Subject: [PATCH] test fix --- irrd/server/graphql/tests/test_extensions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/irrd/server/graphql/tests/test_extensions.py b/irrd/server/graphql/tests/test_extensions.py index 45e0323a8..8ec5bd1e7 100644 --- a/irrd/server/graphql/tests/test_extensions.py +++ b/irrd/server/graphql/tests/test_extensions.py @@ -32,13 +32,13 @@ def test_error_formatter(): # Regular GraphQL error should always be passed error = GraphQLError(message='error') result = error_formatter(error) - assert result == {'message': 'error'} + assert result['message'] == 'error' # If original_error is something else, hide except when in debug mode error = GraphQLError(message='error', original_error=ValueError()) result = error_formatter(error) - assert result == {'message': 'Internal server error'} + assert result['message'] == 'Internal server error' result = error_formatter(error, debug=True) - assert result == {'message': 'error', - 'extensions': {'exception': None}} + assert result['message'] == 'error' + assert result['extensions'] == {'exception': None}