mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-10-22 19:54:50 +03:00
Refine error message in ManyToManySourceSerializer test
Updated the error message for ManyToManySourceSerializer to remove suggestion for default value to make the test work
This commit is contained in:
parent
e87a82b3fc
commit
eb4ed07d94
|
@ -798,7 +798,7 @@ class TestWarningManyToMany(TestCase):
|
|||
"name": "Invalid Example",
|
||||
})
|
||||
|
||||
error_msg = "The field 'targets' on serializer 'ManyToManySourceSerializer' is a ManyToMany field and cannot have a default value of None. Please set an appropriate default value, such as an empty list, or remove the default."
|
||||
error_msg = "The field 'targets' on serializer 'ManyToManySourceSerializer' is a ManyToMany field and cannot have a default value of None."
|
||||
|
||||
# Calls to get_fields() should raise a ValueError
|
||||
with pytest.raises(ValueError) as exc_info:
|
||||
|
|
Loading…
Reference in New Issue
Block a user