Skip to content

Commit 2073168

Browse files
authored
Format with black 23.1.0 (#1247)
1 parent 31b7694 commit 2073168

File tree

4 files changed

+0
-5
lines changed

4 files changed

+0
-5
lines changed

oauth2_provider/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -749,7 +749,6 @@ def redirect_to_uri_allowed(uri, allowed_uris):
749749
and parsed_allowed_uri.netloc == parsed_uri.netloc
750750
and parsed_allowed_uri.path == parsed_uri.path
751751
):
752-
753752
aqs_set = set(parse_qsl(parsed_allowed_uri.query))
754753
if aqs_set.issubset(uqs_set):
755754
return True

oauth2_provider/oauth2_validators.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,6 @@ def save_bearer_token(self, token, request, *args, **kwargs):
572572
and isinstance(refresh_token_instance, RefreshToken)
573573
and refresh_token_instance.access_token
574574
):
575-
576575
access_token = AccessToken.objects.select_for_update().get(
577576
pk=refresh_token_instance.access_token.pk
578577
)

oauth2_provider/views/oidc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ def get(self, request, *args, **kwargs):
8686
oauth2_settings.OIDC_RSA_PRIVATE_KEY,
8787
*oauth2_settings.OIDC_RSA_PRIVATE_KEYS_INACTIVE,
8888
]:
89-
9089
key = jwk.JWK.from_pem(pem.encode("utf8"))
9190
data = {"alg": "RS256", "use": "sig", "kid": key.thumbprint()}
9291
data.update(json.loads(key.export_public()))

tests/test_oauth2_validators.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ def test_save_bearer_token__without_user__raises_fatal_client(self):
160160
self.validator.save_bearer_token(token, mock.MagicMock())
161161

162162
def test_save_bearer_token__with_existing_tokens__does_not_create_new_tokens(self):
163-
164163
rotate_token_function = mock.MagicMock()
165164
rotate_token_function.return_value = False
166165
self.validator.rotate_refresh_token = rotate_token_function
@@ -190,7 +189,6 @@ def test_save_bearer_token__with_existing_tokens__does_not_create_new_tokens(sel
190189
self.assertEqual(1, AccessToken.objects.count())
191190

192191
def test_save_bearer_token__checks_to_rotate_tokens(self):
193-
194192
rotate_token_function = mock.MagicMock()
195193
rotate_token_function.return_value = False
196194
self.validator.rotate_refresh_token = rotate_token_function

0 commit comments

Comments
 (0)