tests: fix test_write_only_fields not being executed (#5971)

This adds the required `test_` prefix.
This commit is contained in:
Daniel Hahler 2018-05-08 10:27:35 +02:00 committed by Tom Christie
parent 4c29752b6a
commit fca39f9dbb

View File

@ -14,7 +14,7 @@ class WriteOnlyFieldTests(TestCase):
self.Serializer = ExampleSerializer self.Serializer = ExampleSerializer
def write_only_fields_are_present_on_input(self): def test_write_only_fields_are_present_on_input(self):
data = { data = {
'email': 'foo@example.com', 'email': 'foo@example.com',
'password': '123' 'password': '123'
@ -23,7 +23,7 @@ class WriteOnlyFieldTests(TestCase):
assert serializer.is_valid() assert serializer.is_valid()
assert serializer.validated_data == data 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 = { instance = {
'email': 'foo@example.com', 'email': 'foo@example.com',
'password': '123' 'password': '123'