From dc4b052b4c81d36ed5fc14d61f4f6397dd2efc85 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 14 Nov 2022 13:23:09 -0500 Subject: [PATCH] :art: Format Python code with psf/black (#335) Co-authored-by: Bwc9876 --- Main/views.py | 2 ++ tests/test_auth.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Main/views.py b/Main/views.py index 43b7102..8937182 100644 --- a/Main/views.py +++ b/Main/views.py @@ -817,10 +817,12 @@ def error_500_handler(request) -> HttpResponse: return Error500.as_view()(request) + # noinspection PyUnusedLocal def csrf_failure_view(request, reason=""): return Error403.as_view()(request) + # Leaderboard diff --git a/tests/test_auth.py b/tests/test_auth.py index dbe40b3..ff6b0e6 100644 --- a/tests/test_auth.py +++ b/tests/test_auth.py @@ -23,7 +23,7 @@ class LogoutTest(SimpleBaseCase): LDAP_BASE_CONTEXT="ou=ITP Users,dc=itp,dc=example,dc=com", LDAP_URL="0.0.0.0", LDAP_ADMIN_NAME="example\\admin", - LDAP_ADMIN_EMAIL="admin@example.com" + LDAP_ADMIN_EMAIL="admin@example.com", ) class LDAPAuthTest(SimpleBaseCase): url = reverse("login") -- knotmirror 0.0.1