diff --git a/backend/authentication/tests/test_authentication_views.py b/backend/authentication/tests/test_authentication_views.py index 4eecc815..8e7a4155 100644 --- a/backend/authentication/tests/test_authentication_views.py +++ b/backend/authentication/tests/test_authentication_views.py @@ -88,4 +88,3 @@ def test_login_view_returns_login_url(self): server_url=settings.CAS_ENDPOINT, service_url=settings.CAS_RESPONSE ) self.assertEqual(response["Location"], url) - diff --git a/backend/authentication/views.py b/backend/authentication/views.py index cc39aa74..f029defd 100644 --- a/backend/authentication/views.py +++ b/backend/authentication/views.py @@ -1,5 +1,5 @@ from django.shortcuts import redirect -from django.contrib.auth import login, logout +from django.contrib.auth import logout from rest_framework.decorators import action from rest_framework.viewsets import ViewSet from rest_framework.request import Request @@ -59,4 +59,3 @@ def echo(self, request: Request) -> Response: return Response(token_serializer.validated_data) raise AuthenticationFailed(token_serializer.errors) - diff --git a/backend/ypovoli/urls.py b/backend/ypovoli/urls.py index 1a1ca5c0..25e30a72 100644 --- a/backend/ypovoli/urls.py +++ b/backend/ypovoli/urls.py @@ -36,11 +36,6 @@ path("auth/", include("authentication.urls")), path("notifications/", include("notifications.urls")), # Swagger documentation. - path("swagger/", - schema_view.with_ui("swagger", cache_timeout=0), - name="schema-swagger-ui", - ), - path( - "swagger/", schema_view.without_ui(cache_timeout=0), name="schema-json" - ), + path("swagger/", schema_view.with_ui("swagger", cache_timeout=0), name="schema-swagger-ui"), + path("swagger/", schema_view.without_ui(cache_timeout=0), name="schema-json"), ]