From c05926b851bbb3bced20a23278acbdfc7006af3c Mon Sep 17 00:00:00 2001 From: Oliver Sauder Date: Tue, 7 Jan 2025 22:11:41 +0400 Subject: [PATCH] Fixed linting --- tests/test_testing.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_testing.py b/tests/test_testing.py index dd67b058a2..26a6e8ffb9 100644 --- a/tests/test_testing.py +++ b/tests/test_testing.py @@ -10,7 +10,9 @@ from rest_framework import fields, parsers, renderers, serializers, status from rest_framework.authtoken.models import Token -from rest_framework.decorators import api_view, parser_classes, renderer_classes +from rest_framework.decorators import ( + api_view, parser_classes, renderer_classes +) from rest_framework.response import Response from rest_framework.test import ( APIClient, APIRequestFactory, URLPatternsTestCase, force_authenticate @@ -55,11 +57,13 @@ class BasicSerializer(serializers.Serializer): def post_json_view(request): return Response(request.data) + @api_view(['DELETE']) @renderer_classes((renderers.JSONRenderer, )) def delete_json_view(request): return Response(status=status.HTTP_204_NO_CONTENT) + @api_view(['POST']) def post_view(request): serializer = BasicSerializer(data=request.data)