tests: fix test_write_only_fields not being executed

This adds the required `test_` prefix.
This commit is contained in:
Daniel Hahler 2018-05-04 13:30:54 +02:00
parent fd4282c7fa
commit 94b8d246ce

View File

@ -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'