mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-23 06:29:58 +03:00
update tests to fit new assertion message.
This commit is contained in:
parent
6dc794974a
commit
d0179995f0
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user