diff --git a/tests/oauth2/test__client.py b/tests/oauth2/test__client.py index 745a4b675..9cf59eb98 100644 --- a/tests/oauth2/test__client.py +++ b/tests/oauth2/test__client.py @@ -112,15 +112,12 @@ def test__token_endpoint_request_error(): def test__token_endpoint_request_internal_failure_error(): request = make_request( - {"error": "internal_failure", "error_description": "internal_failure"}, - status=http_client.BAD_REQUEST, + {"error_description": "internal_failure"}, status=http_client.BAD_REQUEST ) with pytest.raises(exceptions.RefreshError): _client._token_endpoint_request( - request, - "http://example.com", - {"error": "internal_failure", "error_description": "internal_failure"}, + request, "http://example.com", {"error_description": "internal_failure"} ) request = make_request(