Skip to content

Commit 9f93ff1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5f4bd2d commit 9f93ff1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_oauth2_backends.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def test_create_token_response_raise_exception(self):
106106
create_token_response.side_effect = OAuth2Error("test error description")
107107
uri, headers, body, status = self.oauthlib_core.create_token_response(request)
108108

109-
self.assertEqual(json.loads(body)['error_description'], "test error description")
109+
self.assertEqual(json.loads(body)["error_description"], "test error description")
110110

111111
def test_create_token_response_query_params(self):
112112
payload = (
@@ -152,7 +152,7 @@ def test_create_revocation_response_raise_exception(self):
152152
create_revocation_response.side_effect = OAuth2Error("test error description")
153153
uri, headers, body, status = self.oauthlib_core.create_revocation_response(request)
154154

155-
self.assertEqual(json.loads(body)['error_description'], "test error description")
155+
self.assertEqual(json.loads(body)["error_description"], "test error description")
156156

157157
def test_create_revocation_response_query_params(self):
158158
token = AccessTokenModel.objects.create(

0 commit comments

Comments
 (0)