From 2daafa717e20443bf16892924b6d4216de644a5e Mon Sep 17 00:00:00 2001 From: Thomas Achtemichuk Date: Thu, 20 Aug 2020 15:39:20 -0400 Subject: [PATCH] Clean up test name --- tests/test_model_serializer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_model_serializer.py b/tests/test_model_serializer.py index 5162c3264..e9cba714d 100644 --- a/tests/test_model_serializer.py +++ b/tests/test_model_serializer.py @@ -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)