From fca39f9dbbdbda7baa24efa6f16a0ce688349176 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Tue, 8 May 2018 10:27:35 +0200 Subject: [PATCH] tests: fix test_write_only_fields not being executed (#5971) This adds the required `test_` prefix. --- tests/test_write_only_fields.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'