mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-29 09:30:07 +03:00
revert blank lines
This commit is contained in:
parent
228406e64a
commit
e02b69cbb7
|
@ -50,6 +50,7 @@ class DecoratorTestCase(TestCase):
|
||||||
return Response()
|
return Response()
|
||||||
|
|
||||||
def test_calling_method(self):
|
def test_calling_method(self):
|
||||||
|
|
||||||
@api_view(['GET'])
|
@api_view(['GET'])
|
||||||
def view(request):
|
def view(request):
|
||||||
return Response({})
|
return Response({})
|
||||||
|
@ -63,6 +64,7 @@ class DecoratorTestCase(TestCase):
|
||||||
assert response.status_code == status.HTTP_405_METHOD_NOT_ALLOWED
|
assert response.status_code == status.HTTP_405_METHOD_NOT_ALLOWED
|
||||||
|
|
||||||
def test_calling_put_method(self):
|
def test_calling_put_method(self):
|
||||||
|
|
||||||
@api_view(['GET', 'PUT'])
|
@api_view(['GET', 'PUT'])
|
||||||
def view(request):
|
def view(request):
|
||||||
return Response({})
|
return Response({})
|
||||||
|
@ -76,6 +78,7 @@ class DecoratorTestCase(TestCase):
|
||||||
assert response.status_code == status.HTTP_405_METHOD_NOT_ALLOWED
|
assert response.status_code == status.HTTP_405_METHOD_NOT_ALLOWED
|
||||||
|
|
||||||
def test_calling_patch_method(self):
|
def test_calling_patch_method(self):
|
||||||
|
|
||||||
@api_view(['GET', 'PATCH'])
|
@api_view(['GET', 'PATCH'])
|
||||||
def view(request):
|
def view(request):
|
||||||
return Response({})
|
return Response({})
|
||||||
|
@ -89,6 +92,7 @@ class DecoratorTestCase(TestCase):
|
||||||
assert response.status_code == status.HTTP_405_METHOD_NOT_ALLOWED
|
assert response.status_code == status.HTTP_405_METHOD_NOT_ALLOWED
|
||||||
|
|
||||||
def test_renderer_classes(self):
|
def test_renderer_classes(self):
|
||||||
|
|
||||||
@api_view(['GET'])
|
@api_view(['GET'])
|
||||||
@renderer_classes([JSONRenderer])
|
@renderer_classes([JSONRenderer])
|
||||||
def view(request):
|
def view(request):
|
||||||
|
@ -99,6 +103,7 @@ class DecoratorTestCase(TestCase):
|
||||||
assert isinstance(response.accepted_renderer, JSONRenderer)
|
assert isinstance(response.accepted_renderer, JSONRenderer)
|
||||||
|
|
||||||
def test_parser_classes(self):
|
def test_parser_classes(self):
|
||||||
|
|
||||||
@api_view(['GET'])
|
@api_view(['GET'])
|
||||||
@parser_classes([JSONParser])
|
@parser_classes([JSONParser])
|
||||||
def view(request):
|
def view(request):
|
||||||
|
@ -110,6 +115,7 @@ class DecoratorTestCase(TestCase):
|
||||||
view(request)
|
view(request)
|
||||||
|
|
||||||
def test_authentication_classes(self):
|
def test_authentication_classes(self):
|
||||||
|
|
||||||
@api_view(['GET'])
|
@api_view(['GET'])
|
||||||
@authentication_classes([BasicAuthentication])
|
@authentication_classes([BasicAuthentication])
|
||||||
def view(request):
|
def view(request):
|
||||||
|
@ -121,6 +127,7 @@ class DecoratorTestCase(TestCase):
|
||||||
view(request)
|
view(request)
|
||||||
|
|
||||||
def test_permission_classes(self):
|
def test_permission_classes(self):
|
||||||
|
|
||||||
@api_view(['GET'])
|
@api_view(['GET'])
|
||||||
@permission_classes([IsAuthenticated])
|
@permission_classes([IsAuthenticated])
|
||||||
def view(request):
|
def view(request):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user