Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion api/e2etests/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from django.conf import settings
from rest_framework import status
from rest_framework.authentication import TokenAuthentication
from rest_framework.request import Request
from rest_framework.response import Response
from rest_framework.views import APIView

Expand All @@ -13,7 +14,7 @@ class Teardown(APIView):
permission_classes = (E2ETestPermission,)
authentication_classes = (TokenAuthentication,)

def post(self, request): # type: ignore[no-untyped-def]
def post(self, request: Request) -> Response:
if not settings.ENABLE_FE_E2E:
return Response(status=status.HTTP_400_BAD_REQUEST)

Expand Down
Loading