diff --git a/tests/test_write_only_fields.py b/tests/test_write_only_fields.py index 272a05ff3..1eeee54b1 100644 --- a/tests/test_write_only_fields.py +++ b/tests/test_write_only_fields.py @@ -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'