diff --git a/backend/user_api/tests.py b/backend/user_api/tests.py index b80dfde..39840ec 100644 --- a/backend/user_api/tests.py +++ b/backend/user_api/tests.py @@ -80,7 +80,7 @@ def test_email_field_content(self): def test_create_user(self): serializer = UserSerializer(data=self.serializer_data) - self.assertTrue(serializer.is_valid()) + self.assertTrue(serializer.is_valid(), serializer.errors) user = serializer.save() self.assertEqual(user.email, self.serializer_data['email']) self.assertEqual(user.username, self.serializer_data['username'])