Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 14, 2023
1 parent 680a463 commit 5eaea0b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions oauth2_provider/views/oidc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import json
from urllib.parse import urlparse
import warnings
from urllib.parse import urlparse

from django.contrib.auth import logout
from django.contrib.auth.models import AnonymousUser
Expand Down Expand Up @@ -226,7 +226,7 @@ def validate_logout_request(request, id_token_hint, client_id, post_logout_redir
will be validated against each other.
"""

warnings.warn('This method is deprecated and will be removed in version 2.5.0.', DeprecationWarning)
warnings.warn("This method is deprecated and will be removed in version 2.5.0.", DeprecationWarning)

id_token = None
must_prompt_logout = True
Expand Down
4 changes: 3 additions & 1 deletion tests/test_oidc_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ def mock_request_for(user):

@pytest.mark.django_db
@pytest.mark.parametrize("ALWAYS_PROMPT", [True, False])
def test_deprecated_validate_logout_request(oidc_tokens, public_application, other_user, rp_settings, ALWAYS_PROMPT):
def test_deprecated_validate_logout_request(
oidc_tokens, public_application, other_user, rp_settings, ALWAYS_PROMPT
):
rp_settings.OIDC_RP_INITIATED_LOGOUT_ALWAYS_PROMPT = ALWAYS_PROMPT
oidc_tokens = oidc_tokens
application = oidc_tokens.application
Expand Down

0 comments on commit 5eaea0b

Please sign in to comment.