mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 08:29:59 +03:00
extra line
This commit is contained in:
parent
10744f4d73
commit
ad94fd82af
|
@ -451,4 +451,4 @@ class ModelTestCase(APITestCase):
|
|||
response = self.client.post(self.url, case, format='json')
|
||||
response.data.pop('id')
|
||||
self.assertEqual(case, response.data)
|
||||
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
|
||||
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
|
||||
|
|
|
@ -11,7 +11,8 @@ from rest_framework import fields, serializers, viewsets
|
|||
from rest_framework.decorators import api_view
|
||||
from rest_framework.response import Response
|
||||
from rest_framework.test import (
|
||||
APIClient, APIRequestFactory, URLPatternsTestCase, force_authenticate, ModelTestCase
|
||||
APIClient, APIRequestFactory, ModelTestCase, URLPatternsTestCase,
|
||||
force_authenticate
|
||||
)
|
||||
|
||||
|
||||
|
@ -343,4 +344,4 @@ class TestModelTestCase(ModelTestCase):
|
|||
url = "/persons/"
|
||||
first_name = ["John", "Jane"]
|
||||
last_name = ["Doe", "Roosevelt"]
|
||||
age = [11, 23, 58, 13, 21]
|
||||
age = [11, 23, 58, 13, 21]
|
||||
|
|
Loading…
Reference in New Issue
Block a user