mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-23 22:49:50 +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',)
|
fields = ('text',)
|
||||||
exclude = ('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):
|
with self.assertRaisesMessage(AssertionError, msginitial):
|
||||||
ExampleSerializer().fields
|
ExampleSerializer().fields
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user