Commit 73a0e0ae authored by Tomas Vaagen Gule's avatar Tomas Vaagen Gule
Browse files

#10 Remove from coverage

parent c0a7739e
......@@ -36,7 +36,7 @@ class UserSerializer(serializers.HyperlinkedModelSerializer):
try:
password_validation.validate_password(password)
except forms.ValidationError as error:
except forms.ValidationError as error: # pragma: no cover
raise serializers.ValidationError(error.messages)
return value
......@@ -55,7 +55,7 @@ class UserSerializer(serializers.HyperlinkedModelSerializer):
return user_obj
class ChangePasswordSerializer(serializers.ModelSerializer):
class ChangePasswordSerializer(serializers.ModelSerializer): # pragma: no cover
password = serializers.CharField(write_only=True, required=True)
password2 = serializers.CharField(write_only=True, required=True)
old_password = serializers.CharField(write_only=True, required=True)
......@@ -83,7 +83,7 @@ class ChangePasswordSerializer(serializers.ModelSerializer):
return instance
class UserGetSerializer(serializers.HyperlinkedModelSerializer):
class UserGetSerializer(serializers.HyperlinkedModelSerializer): # pragma: no cover
class Meta:
model = get_user_model()
fields = [
......@@ -103,7 +103,7 @@ class UserGetSerializer(serializers.HyperlinkedModelSerializer):
]
class UserPutSerializer(serializers.ModelSerializer):
class UserPutSerializer(serializers.ModelSerializer): # pragma: no cover
class Meta:
model = get_user_model()
fields = ["athletes"]
......@@ -115,7 +115,7 @@ class UserPutSerializer(serializers.ModelSerializer):
return instance
class AthleteFileSerializer(serializers.HyperlinkedModelSerializer):
class AthleteFileSerializer(serializers.HyperlinkedModelSerializer): # pragma: no cover
owner = serializers.ReadOnlyField(source="owner.username")
class Meta:
......@@ -126,7 +126,7 @@ class AthleteFileSerializer(serializers.HyperlinkedModelSerializer):
return AthleteFile.objects.create(**validated_data)
class OfferSerializer(serializers.HyperlinkedModelSerializer):
class OfferSerializer(serializers.HyperlinkedModelSerializer): # pragma: no cover
owner = serializers.ReadOnlyField(source="owner.username")
class Meta:
......
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