Skip to content

Commit

Permalink
fix: linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoutV committed Mar 5, 2024
1 parent 73d04b1 commit 771cd9c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion backend/authentication/tests/test_authentication_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

3 changes: 1 addition & 2 deletions backend/authentication/views.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -59,4 +59,3 @@ def echo(self, request: Request) -> Response:
return Response(token_serializer.validated_data)

raise AuthenticationFailed(token_serializer.errors)

9 changes: 2 additions & 7 deletions backend/ypovoli/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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<format>/", 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<format>/", schema_view.without_ui(cache_timeout=0), name="schema-json"),
]

0 comments on commit 771cd9c

Please sign in to comment.