mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-25 02:53:58 +03:00
tests: fix test_write_only_fields not being executed (#5971)
This adds the required `test_` prefix.
This commit is contained in:
parent
4c29752b6a
commit
fca39f9dbb
|
@ -14,7 +14,7 @@ class WriteOnlyFieldTests(TestCase):
|
|||
|
||||
self.Serializer = ExampleSerializer
|
||||
|
||||
def write_only_fields_are_present_on_input(self):
|
||||
def test_write_only_fields_are_present_on_input(self):
|
||||
data = {
|
||||
'email': 'foo@example.com',
|
||||
'password': '123'
|
||||
|
@ -23,7 +23,7 @@ class WriteOnlyFieldTests(TestCase):
|
|||
assert serializer.is_valid()
|
||||
assert serializer.validated_data == data
|
||||
|
||||
def write_only_fields_are_not_present_on_output(self):
|
||||
def test_write_only_fields_are_not_present_on_output(self):
|
||||
instance = {
|
||||
'email': 'foo@example.com',
|
||||
'password': '123'
|
||||
|
|
Loading…
Reference in New Issue
Block a user