Skip to content

Commit c00b681

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 404e248 commit c00b681

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tests/app/idp/idp/oauth.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44

55
from oauth2_provider.oauth2_validators import OAuth2Validator
66

7+
78
# get_response is required for middlware, it doesn't need to do anything
89
# the way we're using it, so we just use a lambda that returns None
9-
def get_response(): None
10+
def get_response():
11+
None
12+
1013

1114
class CustomOAuth2Validator(OAuth2Validator):
1215
def validate_silent_login(self, request) -> None:
@@ -16,7 +19,6 @@ def validate_silent_login(self, request) -> None:
1619
# may need to modify this if you are using a different session
1720
# middleware or auth backend.
1821

19-
2022
session_cookie_name = settings.SESSION_COOKIE_NAME
2123
HTTP_COOKIE = request.headers.get("HTTP_COOKIE")
2224
COOKIES = HTTP_COOKIE.split("; ")

tests/test_authorization_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ def test_prompt_none_with_error(self):
681681
self.oauth2_settings.PKCE_REQUIRED = False
682682

683683
query_data = {
684-
"client_id": 'invalid',
684+
"client_id": "invalid",
685685
"response_type": "code",
686686
"state": "random_state_string",
687687
"scope": "read write",

0 commit comments

Comments
 (0)