Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Improve descriptions
Adam Janik46e4baa1c8dd
diff --git a/saleor/graphql/product/types.py b/saleor/graphql/product/types.pyindex 9eab176997..556ca13407 100644--- a/saleor/graphql/product/types.py+++ b/saleor/graphql/product/types.py@@ -34,6 +34,9 @@ def resolve_attribute_list(attributes):class ProductAttributeValue(CountableDjangoObjectType):+ name = graphene.String(description='Attribute value\'s name.')+ slug = graphene.String(description='Slugified name.')+class Meta:description = 'Represents a value of an attribute.'exclude_fields = ['attribute']@@ -47,8 +50,7 @@ class ProductAttribute(CountableDjangoObjectType):class Meta:description = """Custom attribute of a product. Attributes can be- dynamically assigned to products and variants at the product type- level."""+ assigned to products and variants at the product type level."""exclude_fields = ['product_types', 'product_variant_types']interfaces = [relay.Node]filter_fields = ['id', 'slug']diff --git a/tests/api/test_graphql.py b/tests/api/test_graphql.pyindex d460c381f3..a1f7d1ddac 100644--- a/tests/api/test_graphql.py+++ b/tests/api/test_graphql.py@@ -3,7 +3,6 @@ from unittest.mock import patchimport graphenefrom django.contrib.auth.models import AnonymousUser-from django.forms.models import model_to_dictfrom django.http import HttpResponsefrom django.shortcuts import reversefrom django.test import RequestFactory