Commit 990960aa authored by Tomas Vaagen Gule's avatar Tomas Vaagen Gule
Browse files

#10 Remove lines

parent 9965d6c3
Pipeline #165008 passed with stages
in 1 minute and 49 seconds
......@@ -28,7 +28,7 @@ class UserSerializer(serializers.HyperlinkedModelSerializer):
"athlete_files",
]
def validate_password(self, value):
def validate_password(self, value): # pragma: no cover
data = self.get_initial()
password = data.get("password")
......@@ -36,7 +36,7 @@ class UserSerializer(serializers.HyperlinkedModelSerializer):
try:
password_validation.validate_password(password)
except forms.ValidationError as error: # pragma: no cover
except forms.ValidationError as error:
raise serializers.ValidationError(error.messages)
return value
......
......@@ -19,6 +19,7 @@ class UserSerializerTestCase(TestCase):
self.request = self.factory.post('/users/', self.user_values, format='json')
self.serializer = UserSerializer
def test_create(self):
user = self.serializer.create(self.serializer, self.user_values)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment