mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-18 12:12:19 +03:00
fix formatting issues for list serializer validation fix
This commit is contained in:
parent
9ac6417aad
commit
76110bf8a5
|
@ -11,7 +11,6 @@ from django.db import models
|
||||||
|
|
||||||
from rest_framework import exceptions, fields, relations, serializers
|
from rest_framework import exceptions, fields, relations, serializers
|
||||||
from rest_framework.fields import Field
|
from rest_framework.fields import Field
|
||||||
|
|
||||||
from .models import (
|
from .models import (
|
||||||
ForeignKeyTarget, NestedForeignKeySource, NullableForeignKeySource
|
ForeignKeyTarget, NestedForeignKeySource, NullableForeignKeySource
|
||||||
)
|
)
|
||||||
|
@ -837,7 +836,7 @@ class TestMultipleObjectsValidation(unittest.TestCase):
|
||||||
def test_exception_raised_when_data_and_instance_length_different(self):
|
def test_exception_raised_when_data_and_instance_length_different(self):
|
||||||
|
|
||||||
with self.assertRaises(AssertionError):
|
with self.assertRaises(AssertionError):
|
||||||
serializer = MyClassSerializer(
|
MyClassSerializer(
|
||||||
data=[{'value': 'set', 'id': instance.id} for instance in
|
data=[{'value': 'set', 'id': instance.id} for instance in
|
||||||
self.objs],
|
self.objs],
|
||||||
instance=self.objs[:-1],
|
instance=self.objs[:-1],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user