Skip to content

Commit

Permalink
fix(test_coverage): leave only "error_description" in the first test
Browse files Browse the repository at this point in the history
Now test__token_endpoint_request_internal_failure_error contains two mutually exclusive cases.
  • Loading branch information
georgysavva committed Nov 13, 2019
1 parent 9711785 commit 240c205
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/oauth2/test__client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 240c205

Please sign in to comment.