extra line

This commit is contained in:
Ciro Monteiro 2021-11-14 00:03:02 -03:00
parent 10744f4d73
commit ad94fd82af
2 changed files with 4 additions and 3 deletions

View File

@ -451,4 +451,4 @@ class ModelTestCase(APITestCase):
response = self.client.post(self.url, case, format='json') response = self.client.post(self.url, case, format='json')
response.data.pop('id') response.data.pop('id')
self.assertEqual(case, response.data) self.assertEqual(case, response.data)
self.assertEqual(response.status_code, status.HTTP_201_CREATED) self.assertEqual(response.status_code, status.HTTP_201_CREATED)

View File

@ -11,7 +11,8 @@ from rest_framework import fields, serializers, viewsets
from rest_framework.decorators import api_view from rest_framework.decorators import api_view
from rest_framework.response import Response from rest_framework.response import Response
from rest_framework.test import ( 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/" url = "/persons/"
first_name = ["John", "Jane"] first_name = ["John", "Jane"]
last_name = ["Doe", "Roosevelt"] last_name = ["Doe", "Roosevelt"]
age = [11, 23, 58, 13, 21] age = [11, 23, 58, 13, 21]