mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-07 13:54:47 +03:00
WIP demonstrating the issue in 4561
This commit is contained in:
parent
7f29cfc931
commit
8f884843e8
|
@ -62,6 +62,13 @@ class TestSerializer:
|
|||
with pytest.raises(AssertionError):
|
||||
serializer.save()
|
||||
|
||||
def test_validate_none_data(self):
|
||||
data = None
|
||||
serializer = self.Serializer(data=data)
|
||||
serializer.is_valid()
|
||||
|
||||
serializer.errors
|
||||
|
||||
|
||||
class TestValidateMethod:
|
||||
def test_non_field_error_validate_method(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user