mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-24 02:24:03 +03:00
Clean up test name
This commit is contained in:
parent
2e0b394bbe
commit
2daafa717e
|
@ -1345,8 +1345,9 @@ class Issue7489Serializer(serializers.ModelSerializer):
|
|||
|
||||
|
||||
class Issue7489Test(TestCase):
|
||||
def test_model_serializer_inserts_choices_default_on_unique_together_validation(self):
|
||||
def test_model_serializer_substitutes_default_on_unique_together_validation(self):
|
||||
Issue7489Model.objects.create(field1='A', field2='A')
|
||||
b = Issue7489Model.objects.create(field1='A', field2='B')
|
||||
b = Issue7489Model.objects.create(field1='B', field2='B')
|
||||
# Attempt to validate the serializer for updating `field3` on instance `b`
|
||||
serializer = Issue7489Serializer(instance=b, data={'field3': 'X'})
|
||||
self.assertTrue(serializer.is_valid(), serializer.errors)
|
||||
|
|
Loading…
Reference in New Issue
Block a user