update tests to fit new assertion message.

This commit is contained in:
Ignacio Gonzalez 2023-02-28 13:05:02 -03:00
parent 6dc794974a
commit d0179995f0

View File

@ -979,7 +979,7 @@ class TestSerializerMetaClass(TestCase):
fields = ('text',)
exclude = ('text',)
msginitial = "Cannot set both 'fields' and 'exclude' options on serializer ExampleSerializer."
msginitial = "Cannot set 'fields' together with 'exclude' or 'include' options on serializer ExampleSerializer."
with self.assertRaisesMessage(AssertionError, msginitial):
ExampleSerializer().fields