Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix cosmetic issues and spelling (#18053)
Patryk Zawadzkib0ce0880b19b
diff --git a/saleor/graphql/account/mutations/account/send_confirmation_email.py b/saleor/graphql/account/mutations/account/send_confirmation_email.pyindex 0e1fb0b53c..8eb20c05db 100644--- a/saleor/graphql/account/mutations/account/send_confirmation_email.py+++ b/saleor/graphql/account/mutations/account/send_confirmation_email.py@@ -33,7 +33,7 @@ class SendConfirmationEmail(BaseMutation):)channel = graphene.String(required=True,- description=("Slug of a channel which will be used for notify user."),+ description="Slug of a channel which will be used for notify user.",)class Meta:diff --git a/saleor/graphql/account/types.py b/saleor/graphql/account/types.pyindex a04f7ac64c..4338aca852 100644--- a/saleor/graphql/account/types.py+++ b/saleor/graphql/account/types.py@@ -886,7 +886,7 @@ class AddressValidationData(BaseObjectType):postal_code_matchers = NonNullList(graphene.String,required=True,- description=("The regular expression for postal code validation."),+ description="The regular expression for postal code validation.",)postal_code_examples = NonNullList(graphene.String,diff --git a/saleor/graphql/app/types.py b/saleor/graphql/app/types.pyindex 5ed6064bdf..34fee0e7fe 100644--- a/saleor/graphql/app/types.py+++ b/saleor/graphql/app/types.py@@ -333,7 +333,7 @@ class AppManifestRequiredSaleorVersion(BaseObjectType):required=True,)satisfied = graphene.Boolean(- description=("Informs if the Saleor version matches the required one."),+ description="Informs if the Saleor version matches the required one.",required=True,)diff --git a/saleor/graphql/attribute/mutations/attribute_bulk_create.py b/saleor/graphql/attribute/mutations/attribute_bulk_create.pyindex 72a31df3b3..aa8d8ddf79 100644--- a/saleor/graphql/attribute/mutations/attribute_bulk_create.py+++ b/saleor/graphql/attribute/mutations/attribute_bulk_create.py@@ -51,7 +51,7 @@ def validate_value(index_error_map[attribute_index].append(error_class(path=f"{path_prefix}.{value_index}",- message=("Cannot specify both value and file for swatch attribute."),+ message="Cannot specify both value and file for swatch attribute.",code=error_class.code.INVALID.value,))diff --git a/saleor/graphql/channel/types.py b/saleor/graphql/channel/types.pyindex 145dee2ed9..5af1bb3bf4 100644--- a/saleor/graphql/channel/types.py+++ b/saleor/graphql/channel/types.py@@ -132,7 +132,7 @@ class OrderSettings(ObjectType):)delete_expired_orders_after = Day(required=True,- description=("The time in days after expired orders will be deleted."),+ description="The time in days after expired orders will be deleted.",)allow_unpaid_orders = graphene.Boolean(required=True,@@ -296,7 +296,7 @@ class Channel(ModelObjectType):)stock_settings = PermissionsField(StockSettings,- description=("Define the stock setting for this channel."),+ description="Define the stock setting for this channel.",required=True,permissions=[AuthorizationFilters.AUTHENTICATED_APP,diff --git a/saleor/graphql/checkout/mutations/checkout_create.py b/saleor/graphql/checkout/mutations/checkout_create.pyindex a8f669c706..2330d5e738 100644--- a/saleor/graphql/checkout/mutations/checkout_create.py+++ b/saleor/graphql/checkout/mutations/checkout_create.py@@ -179,7 +179,7 @@ class CheckoutCreateInput(BaseInputObjectType):)validation_rules = CheckoutValidationRules(required=False,- description=("The checkout validation rules that can be changed."),+ description="The checkout validation rules that can be changed.",)metadata = NonNullList(diff --git a/saleor/graphql/checkout/tests/mutations/test_checkout_complete_price_override.py b/saleor/graphql/checkout/tests/mutations/test_checkout_complete_price_override.pyindex c68548f740..e1f8ab3cc9 100644--- a/saleor/graphql/checkout/tests/mutations/test_checkout_complete_price_override.py+++ b/saleor/graphql/checkout/tests/mutations/test_checkout_complete_price_override.py@@ -566,7 +566,7 @@ def test_checkout_complete_with_price_override_and_order_promotion(assert order_discount.amount_value == discount_amount[email protected](("price_override"), [30, 5])[email protected]("price_override", [30, 5])def test_checkout_complete_with_price_override_and_gift_promotion(price_override,user_api_client,diff --git a/saleor/graphql/checkout/types.py b/saleor/graphql/checkout/types.pyindex b9f0aa4171..30dce70b4f 100644--- a/saleor/graphql/checkout/types.py+++ b/saleor/graphql/checkout/types.py@@ -611,7 +611,7 @@ class Checkout(SyncWebhookControlContextModelObjectType[models.Checkout]):)updated_at = DateTime(required=True,- description=("Time of last modification of the given checkout."),+ description="Time of last modification of the given checkout.",)last_change = DateTime(required=True,@@ -720,7 +720,7 @@ class Checkout(SyncWebhookControlContextModelObjectType[models.Checkout]):available_collection_points = NonNullList(Warehouse,required=True,- description=("Collection points that can be used for this order."),+ description="Collection points that can be used for this order.",)available_payment_gateways = BaseField(NonNullList(PaymentGateway),@@ -794,7 +794,7 @@ class Checkout(SyncWebhookControlContextModelObjectType[models.Checkout]):)delivery_method = BaseField(DeliveryMethod,- description=("The delivery method selected for this checkout."),+ description="The delivery method selected for this checkout.",webhook_events_info=[WebhookEventInfo(type=WebhookEventSyncType.SHIPPING_LIST_METHODS_FOR_CHECKOUT,@@ -824,7 +824,7 @@ class Checkout(SyncWebhookControlContextModelObjectType[models.Checkout]):],)tax_exemption = graphene.Boolean(- description=("Returns True if checkout has to be exempt from taxes."),+ description="Returns True if checkout has to be exempt from taxes.",required=True,)token = graphene.Field(UUID, description="The checkout's token.", required=True)@@ -845,7 +845,7 @@ class Checkout(SyncWebhookControlContextModelObjectType[models.Checkout]):total_balance = BaseField(Money,- description=("The difference between the paid and the checkout total amount."),+ description="The difference between the paid and the checkout total amount.",required=True,webhook_events_info=[WebhookEventInfo(@@ -866,12 +866,12 @@ class Checkout(SyncWebhookControlContextModelObjectType[models.Checkout]):),)display_gross_prices = graphene.Boolean(- description=("Determines whether displayed prices should include taxes."),+ description="Determines whether displayed prices should include taxes.",required=True,)authorize_status = BaseField(CheckoutAuthorizeStatusEnum,- description=("The authorize status of the checkout."),+ description="The authorize status of the checkout.",required=True,webhook_events_info=[WebhookEventInfo(@@ -882,7 +882,7 @@ class Checkout(SyncWebhookControlContextModelObjectType[models.Checkout]):)charge_status = BaseField(CheckoutChargeStatusEnum,- description=("The charge status of the checkout."),+ description="The charge status of the checkout.",required=True,webhook_events_info=[WebhookEventInfo(@@ -906,7 +906,7 @@ class Checkout(SyncWebhookControlContextModelObjectType[models.Checkout]):problems = NonNullList(CheckoutProblem,- description=("List of problems with the checkout."),+ description="List of problems with the checkout.",)class Meta:diff --git a/saleor/graphql/giftcard/schema.py b/saleor/graphql/giftcard/schema.pyindex 614de7000f..c7bf9a50d5 100644--- a/saleor/graphql/giftcard/schema.py+++ b/saleor/graphql/giftcard/schema.py@@ -47,7 +47,7 @@ class GiftCardQueries(graphene.ObjectType):gift_cards = FilterConnectionField(GiftCardCountableConnection,sort_by=GiftCardSortingInput(description="Sort gift cards."),- filter=GiftCardFilterInput(description=("Filtering options for gift cards.")),+ filter=GiftCardFilterInput(description="Filtering options for gift cards."),search=graphene.String(description="Search gift cards by email and name of user, ""who created or used the gift card, and by code."diff --git a/saleor/graphql/invoice/types.py b/saleor/graphql/invoice/types.pyindex 7f4cda3ed0..b666d20ee2 100644--- a/saleor/graphql/invoice/types.py+++ b/saleor/graphql/invoice/types.py@@ -22,7 +22,7 @@ class Invoice(ModelObjectType[models.Invoice]):required=True, description="Date and time at which invoice was updated.")message = graphene.String(description="Message associated with an invoice.")- url = graphene.String(description=("URL to view/download an invoice."))+ url = graphene.String(description="URL to view/download an invoice.")order = graphene.Field("saleor.graphql.order.types.Order",description="Order related to the invoice.",diff --git a/saleor/graphql/menu/schema.py b/saleor/graphql/menu/schema.pyindex 80728c9cb4..e41c1a409e 100644--- a/saleor/graphql/menu/schema.py+++ b/saleor/graphql/menu/schema.py@@ -47,7 +47,7 @@ class MenuQueries(graphene.ObjectType):),sort_by=MenuSortingInput(description="Sort menus."),filter=MenuFilterInput(- description=("Filtering options for menus.\n\n`slug`: Use `slugs` instead.")+ description="Filtering options for menus.\n\n`slug`: Use `slugs` instead."),description="List of the storefront's menus.",)diff --git a/saleor/graphql/order/bulk_mutations/order_bulk_create.py b/saleor/graphql/order/bulk_mutations/order_bulk_create.pyindex 7641457404..1dff244556 100644--- a/saleor/graphql/order/bulk_mutations/order_bulk_create.py+++ b/saleor/graphql/order/bulk_mutations/order_bulk_create.py@@ -603,7 +603,7 @@ class OrderBulkCreateInput(BaseInputObjectType):LanguageCodeEnum, required=True, description="Order language code.")display_gross_prices = graphene.Boolean(- description=("Determines whether displayed prices should include taxes."),+ description="Determines whether displayed prices should include taxes.",)weight = WeightScalar(description="Weight of the order in kg.")redirect_url = graphene.String(diff --git a/saleor/graphql/order/sorters.py b/saleor/graphql/order/sorters.pyindex fd0a3e3420..aeea607d3d 100644--- a/saleor/graphql/order/sorters.py+++ b/saleor/graphql/order/sorters.py@@ -42,8 +42,8 @@ class OrderSortField(BaseEnum):@propertydef deprecation_reason(self):deprecations = {- OrderSortField.CREATION_DATE.name: ("Use `CREATED_AT` instead."), # type: ignore[attr-defined] # graphene.Enum is not typed # noqa: E501- OrderSortField.FULFILLMENT_STATUS.name: ("Use `STATUS` instead."), # type: ignore[attr-defined] # graphene.Enum is not typed # noqa: E501+ OrderSortField.CREATION_DATE.name: "Use `CREATED_AT` instead.", # type: ignore[attr-defined] # graphene.Enum is not typed # noqa: E501+ OrderSortField.FULFILLMENT_STATUS.name: "Use `STATUS` instead.", # type: ignore[attr-defined] # graphene.Enum is not typed # noqa: E501}if self.name in deprecations:return deprecations[self.name]diff --git a/saleor/graphql/order/types.py b/saleor/graphql/order/types.pyindex a5c04b523d..5ed83938f7 100644--- a/saleor/graphql/order/types.py+++ b/saleor/graphql/order/types.py@@ -277,7 +277,7 @@ class OrderGrantedRefund(f"{AuthorizationFilters.OWNER.name}."),)- app = graphene.Field(App, description=("App that performed the action."))+ app = graphene.Field(App, description="App that performed the action.")shipping_costs_included = graphene.Boolean(required=True,description=(@@ -1059,7 +1059,7 @@ class OrderLine()tax_class = PermissionsField(TaxClass,- description=("Denormalized tax class of the product in this order line."),+ description="Denormalized tax class of the product in this order line.",required=False,permissions=[AuthorizationFilters.AUTHENTICATED_STAFF_USER,@@ -1553,7 +1553,7 @@ class Order(SyncWebhookControlContextModelObjectType[ModelObjectType[models.Orde)available_collection_points = NonNullList(Warehouse,- description=("Collection points that can be used for this order."),+ description="Collection points that can be used for this order.",required=True,)invoices = NonNullList(@@ -1582,15 +1582,15 @@ class Order(SyncWebhookControlContextModelObjectType[ModelObjectType[models.Ordedescription="User-friendly payment status.", required=True)authorize_status = OrderAuthorizeStatusEnum(- description=("The authorize status of the order."),+ description="The authorize status of the order.",required=True,)charge_status = OrderChargeStatusEnum(- description=("The charge status of the order."),+ description="The charge status of the order.",required=True,)tax_exemption = graphene.Boolean(- description=("Returns True if order has to be exempt from taxes."),+ description="Returns True if order has to be exempt from taxes.",required=True,)transactions = NonNullList(@@ -1736,7 +1736,7 @@ class Order(SyncWebhookControlContextModelObjectType[ModelObjectType[models.Orde)delivery_method = graphene.Field(DeliveryMethod,- description=("The delivery method selected for this order."),+ description="The delivery method selected for this order.",)language_code = graphene.String(deprecation_reason="Use the `languageCodeEnum` field to fetch the language code.",@@ -1770,14 +1770,14 @@ class Order(SyncWebhookControlContextModelObjectType[ModelObjectType[models.Orderequired=True,)display_gross_prices = graphene.Boolean(- description=("Determines whether displayed prices should include taxes."),+ description="Determines whether displayed prices should include taxes.",required=True,)external_reference = graphene.String(description="External ID of this order.", required=False)checkout_id = graphene.ID(- description=("ID of the checkout that the order was created from."),+ description="ID of the checkout that the order was created from.",required=False,)diff --git a/saleor/graphql/payment/mutations/transaction/transaction_create.py b/saleor/graphql/payment/mutations/transaction/transaction_create.pyindex 5c4a25e697..b798e4114c 100644--- a/saleor/graphql/payment/mutations/transaction/transaction_create.py+++ b/saleor/graphql/payment/mutations/transaction/transaction_create.py@@ -50,7 +50,7 @@ class TransactionCreateInput(BaseInputObjectType):name = graphene.String(description="Payment name of the transaction.")message = graphene.String(description="The message of the transaction.")- psp_reference = graphene.String(description=("PSP Reference of the transaction. "))+ psp_reference = graphene.String(description="PSP Reference of the transaction.")available_actions = graphene.List(graphene.NonNull(TransactionActionEnum),description="List of all possible actions for the transaction",@@ -90,9 +90,7 @@ class TransactionCreateInput(BaseInputObjectType):class TransactionEventInput(BaseInputObjectType):- psp_reference = graphene.String(- description=("PSP Reference related to this action.")- )+ psp_reference = graphene.String(description="PSP Reference related to this action.")message = graphene.String(description="The message related to the event.")diff --git a/saleor/graphql/payment/tests/mutations/test_transaction_event_report.py b/saleor/graphql/payment/tests/mutations/test_transaction_event_report.pyindex 3b52700006..ad391bd842 100644--- a/saleor/graphql/payment/tests/mutations/test_transaction_event_report.py+++ b/saleor/graphql/payment/tests/mutations/test_transaction_event_report.py@@ -2188,7 +2188,7 @@ def test_transaction_event_report_for_order_triggers_webhooks_when_fully_paid(@pytest.mark.parametrize(- ("auto_order_confirmation"),+ "auto_order_confirmation",[True, False],)@patch("saleor.plugins.manager.PluginsManager.order_paid")diff --git a/saleor/graphql/payment/tests/mutations/test_transaction_initialize.py b/saleor/graphql/payment/tests/mutations/test_transaction_initialize.pyindex d1371076a3..1c547a45f6 100644--- a/saleor/graphql/payment/tests/mutations/test_transaction_initialize.py+++ b/saleor/graphql/payment/tests/mutations/test_transaction_initialize.py@@ -1104,7 +1104,7 @@ def test_order_status_with_order_confirmation(@pytest.mark.parametrize(- ("auto_order_confirmation"),+ "auto_order_confirmation",[True, False],)@mock.patch("saleor.plugins.manager.PluginsManager.transaction_initialize_session")diff --git a/saleor/graphql/payment/tests/mutations/test_transaction_process.py b/saleor/graphql/payment/tests/mutations/test_transaction_process.pyindex 0a61ba5685..1bace3d5bf 100644--- a/saleor/graphql/payment/tests/mutations/test_transaction_process.py+++ b/saleor/graphql/payment/tests/mutations/test_transaction_process.py@@ -445,7 +445,7 @@ def test_order_status_with_order_confirmation(@pytest.mark.parametrize(- ("auto_order_confirmation"),+ "auto_order_confirmation",[True, False],)@mock.patch("saleor.plugins.manager.PluginsManager.transaction_process_session")diff --git a/saleor/graphql/payment/tests/mutations/test_transaction_update.py b/saleor/graphql/payment/tests/mutations/test_transaction_update.pyindex dd8e393602..39333e51d5 100644--- a/saleor/graphql/payment/tests/mutations/test_transaction_update.py+++ b/saleor/graphql/payment/tests/mutations/test_transaction_update.py@@ -3031,7 +3031,7 @@ def test_transaction_update_for_order_triggers_webhooks_when_fully_paid(@pytest.mark.parametrize(- ("auto_order_confirmation"),+ "auto_order_confirmation",[True, False],)@patch("saleor.plugins.manager.PluginsManager.order_paid")diff --git a/saleor/graphql/payment/types.py b/saleor/graphql/payment/types.pyindex 0160600c34..f636304fc8 100644--- a/saleor/graphql/payment/types.py+++ b/saleor/graphql/payment/types.py@@ -362,7 +362,7 @@ class TransactionEvent(ModelObjectType[models.TransactionEvent]):created_by = graphene.Field("saleor.graphql.core.types.user_or_app.UserOrApp",- description=("User or App that created the transaction event."),+ description="User or App that created the transaction event.",)idempotency_key = graphene.String(@@ -585,7 +585,7 @@ class TransactionItem(ModelObjectType[models.TransactionItem]):)created_by = graphene.Field("saleor.graphql.core.types.user_or_app.UserOrApp",- description=("User or App that created the transaction."),+ description="User or App that created the transaction.",)external_url = graphene.String(description=(diff --git a/saleor/graphql/product/bulk_mutations/product_variant_bulk_create.py b/saleor/graphql/product/bulk_mutations/product_variant_bulk_create.pyindex b1e0740663..a1bebe0a3b 100644--- a/saleor/graphql/product/bulk_mutations/product_variant_bulk_create.py+++ b/saleor/graphql/product/bulk_mutations/product_variant_bulk_create.py@@ -151,7 +151,7 @@ class BulkAttributeValueInput(BaseInputObjectType):)file = graphene.String(required=False,- description=("URL of the file attribute. Every time, a new value is created."),+ description="URL of the file attribute. Every time, a new value is created.",)content_type = graphene.String(required=False,@@ -165,7 +165,7 @@ class BulkAttributeValueInput(BaseInputObjectType):)references = NonNullList(graphene.ID,- description=("List of entity IDs that will be used as references."),+ description="List of entity IDs that will be used as references.",required=False,)rich_text = JSONString(diff --git a/saleor/graphql/product/mutations/product_variant/product_variant_create.py b/saleor/graphql/product/mutations/product_variant/product_variant_create.pyindex c08acad74e..f44fc4128a 100644--- a/saleor/graphql/product/mutations/product_variant/product_variant_create.py+++ b/saleor/graphql/product/mutations/product_variant/product_variant_create.py@@ -63,7 +63,7 @@ class ProductVariantInput(BaseInputObjectType):)weight = WeightScalar(description="Weight of the Product Variant.", required=False)preorder = PreorderSettingsInput(- description=("Determines if variant is in preorder.")+ description="Determines if variant is in preorder.")quantity_limit_per_customer = graphene.Int(required=False,diff --git a/saleor/graphql/product/tests/mutations/test_unassign_variant_media.py b/saleor/graphql/product/tests/mutations/test_unassign_variant_media.pyindex d114c11003..7c9dd67fb1 100644--- a/saleor/graphql/product/tests/mutations/test_unassign_variant_media.py+++ b/saleor/graphql/product/tests/mutations/test_unassign_variant_media.py@@ -53,4 +53,4 @@ def test_unassign_not_assigned_variant_media_image(query, variables, permissions=[permission_manage_products])content = get_graphql_content(response)- assert content["data"]["variantMediaUnassign"]["errors"][0]["field"] == ("mediaId")+ assert content["data"]["variantMediaUnassign"]["errors"][0]["field"] == "mediaId"diff --git a/saleor/graphql/product/types/products.py b/saleor/graphql/product/types/products.pyindex be7fc3177e..064be71307 100644--- a/saleor/graphql/product/types/products.py+++ b/saleor/graphql/product/types/products.py@@ -223,7 +223,7 @@ class VariantPricingInfo(BasePricingInfo):class ProductPricingInfo(BasePricingInfo):display_gross_prices = graphene.Boolean(- description=("Determines whether displayed prices should include taxes."),+ description="Determines whether displayed prices should include taxes.",required=True,)price_range = graphene.Field(@@ -412,7 +412,7 @@ class ProductVariant(ChannelContextType[models.ProductVariant]):preorder = graphene.Field(PreorderData,required=False,- description=("Preorder data for product variant."),+ description="Preorder data for product variant.",)created = DateTime(required=True,diff --git a/saleor/graphql/shop/mutations/shop_settings_update.py b/saleor/graphql/shop/mutations/shop_settings_update.pyindex a42e4e484b..95bc5b8339 100644--- a/saleor/graphql/shop/mutations/shop_settings_update.py+++ b/saleor/graphql/shop/mutations/shop_settings_update.py@@ -36,7 +36,7 @@ class ShopSettingsInput(graphene.InputObjectType):description="Enable automatic approval of all new fulfillments.")fulfillment_allow_unpaid = graphene.Boolean(- description=("Enable ability to approve fulfillments which are unpaid.")+ description="Enable ability to approve fulfillments which are unpaid.")default_digital_max_downloads = graphene.Int(description="Default number of max downloads per digital content URL."@@ -77,7 +77,7 @@ class ShopSettingsInput(graphene.InputObjectType):description="Enable automatic account confirmation by email.")allow_login_without_confirmation = graphene.Boolean(- description=("Enable possibility to login without account confirmation.")+ description="Enable possibility to login without account confirmation.")metadata = common_types.NonNullList(MetadataInput,diff --git a/saleor/graphql/shop/tests/mutations/test_shop_settings_update.py b/saleor/graphql/shop/tests/mutations/test_shop_settings_update.pyindex d7e2702b38..e3ed08e2ef 100644--- a/saleor/graphql/shop/tests/mutations/test_shop_settings_update.py+++ b/saleor/graphql/shop/tests/mutations/test_shop_settings_update.py@@ -269,9 +269,9 @@ def test_shop_customer_set_password_url_update(@pytest.mark.parametrize("customer_set_password_url",[- ("http://not-allowed-storefron.com/pass"),- ("http://[value-error-in-urlparse@test/pass"),- ("without-protocole.com/pass"),+ "http://not-allowed-storefron.com/pass",+ "http://[value-error-in-urlparse@test/pass",+ "without-protocole.com/pass",],)def test_shop_customer_set_password_url_update_invalid_url(diff --git a/saleor/graphql/warehouse/types.py b/saleor/graphql/warehouse/types.pyindex 0aa4557461..d50c6c1213 100644--- a/saleor/graphql/warehouse/types.py+++ b/saleor/graphql/warehouse/types.py@@ -66,7 +66,7 @@ class WarehouseUpdateInput(WarehouseInput):required=False,)click_and_collect_option = WarehouseClickAndCollectOptionEnum(- description=("Click and collect options: local, all or disabled."),+ description="Click and collect options: local, all or disabled.",required=False,)is_private = graphene.Boolean(diff --git a/saleor/graphql/webhook/enums.py b/saleor/graphql/webhook/enums.pyindex 0829503d84..4ce914e620 100644--- a/saleor/graphql/webhook/enums.py+++ b/saleor/graphql/webhook/enums.py@@ -100,12 +100,12 @@ WEBHOOK_EVENT_DESCRIPTION = {WebhookEventAsyncType.ORDER_REFUNDED: ("The order received a refund. The order may be partially or fully refunded."),- WebhookEventAsyncType.ORDER_FULLY_REFUNDED: ("The order is fully refunded."),+ WebhookEventAsyncType.ORDER_FULLY_REFUNDED: "The order is fully refunded.",WebhookEventAsyncType.ORDER_UPDATED: order_updated_event_enum_description,WebhookEventAsyncType.ORDER_CANCELLED: "An order is cancelled.",WebhookEventAsyncType.ORDER_EXPIRED: "An order is expired.",WebhookEventAsyncType.ORDER_FULFILLED: "An order is fulfilled.",- WebhookEventAsyncType.ORDER_METADATA_UPDATED: ("An order metadata is updated."),+ WebhookEventAsyncType.ORDER_METADATA_UPDATED: "An order metadata is updated.",WebhookEventAsyncType.ORDER_BULK_CREATED: "Orders are imported.",WebhookEventAsyncType.DRAFT_ORDER_CREATED: "A draft order is created.",WebhookEventAsyncType.DRAFT_ORDER_UPDATED: "A draft order is updated.",@@ -142,7 +142,7 @@ WEBHOOK_EVENT_DESCRIPTION = {WebhookEventAsyncType.PRODUCT_CREATED: "A new product is created.",WebhookEventAsyncType.PRODUCT_UPDATED: "A product is updated.",WebhookEventAsyncType.PRODUCT_DELETED: "A product is deleted.",- WebhookEventAsyncType.PRODUCT_METADATA_UPDATED: ("A product metadata is updated."),+ WebhookEventAsyncType.PRODUCT_METADATA_UPDATED: "A product metadata is updated.",WebhookEventAsyncType.PRODUCT_MEDIA_CREATED: "A new product media is created.",WebhookEventAsyncType.PRODUCT_MEDIA_UPDATED: "A product media is updated.",WebhookEventAsyncType.PRODUCT_MEDIA_DELETED: "A product media is deleted.",@@ -161,7 +161,7 @@ WEBHOOK_EVENT_DESCRIPTION = {WebhookEventAsyncType.PRODUCT_VARIANT_STOCK_UPDATED: ("A product variant stock is updated"),- WebhookEventAsyncType.PRODUCT_EXPORT_COMPLETED: ("A product export is completed."),+ WebhookEventAsyncType.PRODUCT_EXPORT_COMPLETED: "A product export is completed.",WebhookEventAsyncType.SHIPPING_PRICE_CREATED: "A new shipping price is created.",WebhookEventAsyncType.SHIPPING_PRICE_UPDATED: "A shipping price is updated.",WebhookEventAsyncType.SHIPPING_PRICE_DELETED: "A shipping price is deleted.",@@ -191,7 +191,7 @@ WEBHOOK_EVENT_DESCRIPTION = {WebhookEventAsyncType.VOUCHER_CREATED: "A new voucher created.",WebhookEventAsyncType.VOUCHER_UPDATED: "A voucher is updated.",WebhookEventAsyncType.VOUCHER_DELETED: "A voucher is deleted.",- WebhookEventAsyncType.VOUCHER_METADATA_UPDATED: ("A voucher metadata is updated."),+ WebhookEventAsyncType.VOUCHER_METADATA_UPDATED: "A voucher metadata is updated.",WebhookEventAsyncType.VOUCHER_CODE_EXPORT_COMPLETED: ("A voucher code export is completed." + ADDED_IN_318),diff --git a/saleor/graphql/webhook/subscription_types.py b/saleor/graphql/webhook/subscription_types.pyindex 597f8d0158..b90f13dd0d 100644--- a/saleor/graphql/webhook/subscription_types.py+++ b/saleor/graphql/webhook/subscription_types.py@@ -1317,7 +1317,7 @@ class FulfillmentTrackingNumberUpdated(SubscriptionObjectType, FulfillmentBase):class FulfillmentCreated(SubscriptionObjectType, FulfillmentBase):notify_customer = graphene.Boolean(- description=("If true, the app should send a notification to the customer."),+ description="If true, the app should send a notification to the customer.",required=True,)@@ -1975,7 +1975,7 @@ class TransactionSessionBase(SubscriptionObjectType, AbstractType):class TransactionInitializeSession(TransactionSessionBase):idempotency_key = graphene.String(- description=("Idempotency key assigned to the transaction initialize."),+ description="Idempotency key assigned to the transaction initialize.",required=True,)diff --git a/saleor/json_schemas/TransactionCancelationRequested.json b/saleor/json_schemas/TransactionCancelationRequested.jsonindex 216cde89a3..159fbe8a6a 100644--- a/saleor/json_schemas/TransactionCancelationRequested.json+++ b/saleor/json_schemas/TransactionCancelationRequested.json@@ -4,7 +4,7 @@{"properties": {"pspReference": {- "description": "Psp reference received from payment provider.",+ "description": "PSP reference received from payment provider.","title": "Pspreference","type": "string"},@@ -81,7 +81,7 @@"properties": {"pspReference": {"default": null,- "description": "Psp reference received from payment provider.",+ "description": "PSP reference received from payment provider.","title": "Pspreference","type": "string"},@@ -156,7 +156,7 @@{"properties": {"pspReference": {- "description": "Psp reference received from payment provider.",+ "description": "PSP reference received from payment provider.","title": "Pspreference","type": "string"},diff --git a/saleor/json_schemas/TransactionChargeRequested.json b/saleor/json_schemas/TransactionChargeRequested.jsonindex 9fc3e117cc..ddcb6c8725 100644--- a/saleor/json_schemas/TransactionChargeRequested.json+++ b/saleor/json_schemas/TransactionChargeRequested.json@@ -4,7 +4,7 @@{"properties": {"pspReference": {- "description": "Psp reference received from payment provider.",+ "description": "PSP reference received from payment provider.","title": "Pspreference","type": "string"},@@ -81,7 +81,7 @@"properties": {"pspReference": {"default": null,- "description": "Psp reference received from payment provider.",+ "description": "PSP reference received from payment provider.","title": "Pspreference","type": "string"},@@ -156,7 +156,7 @@{"properties": {"pspReference": {- "description": "Psp reference received from payment provider.",+ "description": "PSP reference received from payment provider.","title": "Pspreference","type": "string"},diff --git a/saleor/json_schemas/TransactionInitializeSession.json b/saleor/json_schemas/TransactionInitializeSession.jsonindex b928896978..ed4eb438e3 100644--- a/saleor/json_schemas/TransactionInitializeSession.json+++ b/saleor/json_schemas/TransactionInitializeSession.json@@ -4,7 +4,7 @@{"properties": {"pspReference": {- "description": "Psp reference received from payment provider.",+ "description": "PSP reference received from payment provider.","title": "Pspreference","type": "string"},@@ -118,7 +118,7 @@"properties": {"pspReference": {"default": null,- "description": "Psp reference received from payment provider.",+ "description": "PSP reference received from payment provider.","title": "Pspreference","type": "string"},@@ -229,7 +229,7 @@"properties": {"pspReference": {"default": null,- "description": "Psp reference received from payment provider.",+ "description": "PSP reference received from payment provider.","title": "Pspreference","type": "string"},diff --git a/saleor/json_schemas/TransactionProcessSession.json b/saleor/json_schemas/TransactionProcessSession.jsonindex bedda5b6f7..51f5bcf019 100644--- a/saleor/json_schemas/TransactionProcessSession.json+++ b/saleor/json_schemas/TransactionProcessSession.json@@ -4,7 +4,7 @@{"properties": {"pspReference": {- "description": "Psp reference received from payment provider.",+ "description": "PSP reference received from payment provider.","title": "Pspreference","type": "string"},@@ -118,7 +118,7 @@"properties": {"pspReference": {"default": null,- "description": "Psp reference received from payment provider.",+ "description": "PSP reference received from payment provider.","title": "Pspreference","type": "string"},@@ -229,7 +229,7 @@"properties": {"pspReference": {"default": null,- "description": "Psp reference received from payment provider.",+ "description": "PSP reference received from payment provider.","title": "Pspreference","type": "string"},diff --git a/saleor/json_schemas/TransactionRefundRequested.json b/saleor/json_schemas/TransactionRefundRequested.jsonindex da61161d4c..89ad06d90b 100644--- a/saleor/json_schemas/TransactionRefundRequested.json+++ b/saleor/json_schemas/TransactionRefundRequested.json@@ -4,7 +4,7 @@{"properties": {"pspReference": {- "description": "Psp reference received from payment provider.",+ "description": "PSP reference received from payment provider.","title": "Pspreference","type": "string"},@@ -81,7 +81,7 @@"properties": {"pspReference": {"default": null,- "description": "Psp reference received from payment provider.",+ "description": "PSP reference received from payment provider.","title": "Pspreference","type": "string"},@@ -156,7 +156,7 @@{"properties": {"pspReference": {- "description": "Psp reference received from payment provider.",+ "description": "PSP reference received from payment provider.","title": "Pspreference","type": "string"},diff --git a/saleor/payment/gateways/np_atobarai/tests/test_api.py b/saleor/payment/gateways/np_atobarai/tests/test_api.pyindex 4afb254026..96d708e930 100644--- a/saleor/payment/gateways/np_atobarai/tests/test_api.py+++ b/saleor/payment/gateways/np_atobarai/tests/test_api.py@@ -497,7 +497,7 @@ def test_tracking_number_updated_no_payments()assert len(caplog.records) == 1assert caplog.records[0].levelno == logging.WARNING- assert caplog.records[0].message == ("No active payments for this order")+ assert caplog.records[0].message == "No active payments for this order"@patch.object(HTTPSession, "request")diff --git a/saleor/payment/tests/test_payment.py b/saleor/payment/tests/test_payment.pyindex 95928bd1bf..e5bd5b6eb8 100644--- a/saleor/payment/tests/test_payment.py+++ b/saleor/payment/tests/test_payment.py@@ -486,7 +486,7 @@ def test_gateway_charge_errors(payment_dummy, transaction_token, settings):amount=Decimal(1000000),channel_slug=payment_dummy.order.channel.slug,)- assert exc.value.message == ("Unable to charge more than un-captured amount.")+ assert exc.value.message == "Unable to charge more than un-captured amount."def test_gateway_refund_errors(payment_txn_captured):diff --git a/saleor/plugins/email_common.py b/saleor/plugins/email_common.pyindex 3b2fa7af4c..cdd2a1aaa9 100644--- a/saleor/plugins/email_common.py+++ b/saleor/plugins/email_common.py@@ -70,22 +70,22 @@ DEFAULT_EMAIL_CONFIGURATION = [DEFAULT_EMAIL_CONFIG_STRUCTURE = {"host": {"type": ConfigurationTypeField.STRING,- "help_text": ("The host to use for sending email."),+ "help_text": "The host to use for sending email.","label": "SMTP host",},"port": {"type": ConfigurationTypeField.STRING,- "help_text": ("Port to use for the SMTP server."),+ "help_text": "Port to use for the SMTP server.","label": "SMTP port",},"username": {"type": ConfigurationTypeField.STRING,- "help_text": ("Username to use for the SMTP server."),+ "help_text": "Username to use for the SMTP server.","label": "SMTP user",},"password": {"type": ConfigurationTypeField.PASSWORD,- "help_text": ("Password to use for the SMTP server."),+ "help_text": "Password to use for the SMTP server.","label": "Password",},"sender_name": {diff --git a/saleor/product/models.py b/saleor/product/models.pyindex ac114e37bf..532dbd1c77 100644--- a/saleor/product/models.py+++ b/saleor/product/models.py@@ -542,7 +542,7 @@ class ProductVariantChannelListing(models.Model):)promotion_rules = models.ManyToManyField(PromotionRule,- help_text=("Promotion rules that were included in the discounted price."),+ help_text="Promotion rules that were included in the discounted price.",through="product.VariantChannelListingPromotionRule",blank=True,)diff --git a/saleor/tests/e2e/checkout/zero_total/test_0_total_checkout_catalog_promotion_and_shipping_voucher.py b/saleor/tests/e2e/checkout/zero_total/test_0_total_checkout_catalog_promotion_and_shipping_voucher.pyindex 7a09f0313a..1fd3dc32c9 100644--- a/saleor/tests/e2e/checkout/zero_total/test_0_total_checkout_catalog_promotion_and_shipping_voucher.py+++ b/saleor/tests/e2e/checkout/zero_total/test_0_total_checkout_catalog_promotion_and_shipping_voucher.py@@ -18,10 +18,10 @@ from ..utils import (@pytest.mark.e2e@pytest.mark.parametrize(- ("mark_as_paid_strategy"),+ "mark_as_paid_strategy",[- ("TRANSACTION_FLOW"),- ("PAYMENT_FLOW"),+ "TRANSACTION_FLOW",+ "PAYMENT_FLOW",],)def test_complete_0_total_checkout_with_catalog_promotion_and_free_shipping_voucher_CORE_0126(diff --git a/saleor/tests/e2e/checkout/zero_total/test_0_total_checkout_line_voucher_and_click_and_collect.py b/saleor/tests/e2e/checkout/zero_total/test_0_total_checkout_line_voucher_and_click_and_collect.pyindex c30276ab33..a0367d2b6f 100644--- a/saleor/tests/e2e/checkout/zero_total/test_0_total_checkout_line_voucher_and_click_and_collect.py+++ b/saleor/tests/e2e/checkout/zero_total/test_0_total_checkout_line_voucher_and_click_and_collect.py@@ -17,10 +17,10 @@ from ..utils import (@pytest.mark.e2e@pytest.mark.parametrize(- ("mark_as_paid_strategy"),+ "mark_as_paid_strategy",[- ("TRANSACTION_FLOW"),- ("PAYMENT_FLOW"),+ "TRANSACTION_FLOW",+ "PAYMENT_FLOW",],)def test_complete_0_total_checkout_with_lines_voucher_and_click_and_collect_CORE_0125(diff --git a/saleor/tests/e2e/checkout/zero_total/test_0_total_checkout_with_order_promotion_and_free_shipping.py b/saleor/tests/e2e/checkout/zero_total/test_0_total_checkout_with_order_promotion_and_free_shipping.pyindex 077e72d5df..526f6aff73 100644--- a/saleor/tests/e2e/checkout/zero_total/test_0_total_checkout_with_order_promotion_and_free_shipping.py+++ b/saleor/tests/e2e/checkout/zero_total/test_0_total_checkout_with_order_promotion_and_free_shipping.py@@ -15,10 +15,10 @@ from ..utils import (@pytest.mark.e2e@pytest.mark.parametrize(- ("mark_as_paid_strategy"),+ "mark_as_paid_strategy",[- ("TRANSACTION_FLOW"),- ("PAYMENT_FLOW"),+ "TRANSACTION_FLOW",+ "PAYMENT_FLOW",],)def test_complete_0_total_checkout_with_order_promotion_and_free_shipping_method_CORE_0124(diff --git a/saleor/tests/e2e/checkout/zero_total/test_pay_for_total_checkout_with_gift_card.py b/saleor/tests/e2e/checkout/zero_total/test_pay_for_total_checkout_with_gift_card.pyindex ddb7c05480..9e408df386 100644--- a/saleor/tests/e2e/checkout/zero_total/test_pay_for_total_checkout_with_gift_card.py+++ b/saleor/tests/e2e/checkout/zero_total/test_pay_for_total_checkout_with_gift_card.py@@ -16,10 +16,10 @@ from ..utils import (@pytest.mark.e2e@pytest.mark.parametrize(- ("mark_as_paid_strategy"),+ "mark_as_paid_strategy",[- ("TRANSACTION_FLOW"),- ("PAYMENT_FLOW"),+ "TRANSACTION_FLOW",+ "PAYMENT_FLOW",],)def test_gift_card_total_payment_for_checkout_core_1101(diff --git a/saleor/tests/e2e/vouchers/test_export_voucher_codes.py b/saleor/tests/e2e/vouchers/test_export_voucher_codes.pyindex 0708b4d202..f904039436 100644--- a/saleor/tests/e2e/vouchers/test_export_voucher_codes.py+++ b/saleor/tests/e2e/vouchers/test_export_voucher_codes.py@@ -203,10 +203,10 @@ def test_export_valid_voucher_code_ids_CORE_0925(@pytest.mark.e2e@pytest.mark.parametrize(- ("file_type"),+ "file_type",[- ("XLSX"),- ("CSV"),+ "XLSX",+ "CSV",],)def test_export_voucher_codes_with_invalid_voucher_id_CORE_0925(@@ -239,10 +239,10 @@ def test_export_voucher_codes_with_invalid_voucher_id_CORE_0925(@pytest.mark.e2e@pytest.mark.parametrize(- ("file_type"),+ "file_type",[- ("XLSX"),- ("CSV"),+ "XLSX",+ "CSV",],)def test_export_voucher_codes_with_invalid_voucher_codes_CORE_0925(@@ -274,10 +274,10 @@ def test_export_voucher_codes_with_invalid_voucher_codes_CORE_0925(@pytest.mark.e2e@pytest.mark.parametrize(- ("file_type"),+ "file_type",[- ("XLSX"),- ("CSV"),+ "XLSX",+ "CSV",],)def test_export_voucher_codes_without_voucher_id_nor_codes_CORE_0925(diff --git a/saleor/webhook/response_schemas/transaction.py b/saleor/webhook/response_schemas/transaction.pyindex 2edf6b079f..b6e2f255b0 100644--- a/saleor/webhook/response_schemas/transaction.py+++ b/saleor/webhook/response_schemas/transaction.py@@ -41,7 +41,7 @@ class PaymentMethodDetailsBase(BaseModel):name: Annotated[str,Field(- description=("Name of the payment method used for the transaction."),+ description="Name of the payment method used for the transaction.",max_length=256,),]@@ -119,7 +119,7 @@ class TransactionBaseSchema(BaseModel):validation_alias="pspReference",default=None,description=(- "Psp reference received from payment provider. Optional for the following results: "+ "PSP reference received from payment provider. Optional for the following results: "+ ", ".join([event.upper() for event in OPTIONAL_PSP_REFERENCE_EVENTS])),),@@ -240,7 +240,7 @@ class TransactionAsyncSchema(BaseModel):str,Field(validation_alias="pspReference",- description=("Psp reference received from payment provider."),+ description="PSP reference received from payment provider.",),]actions: ( # type: ignore[name-defined]@@ -266,7 +266,7 @@ class TransactionSyncFailureSchema(TransactionBaseSchema):Field(validation_alias="pspReference",default=None,- description=("Psp reference received from payment provider."),+ description="PSP reference received from payment provider.",),]@@ -276,7 +276,7 @@ class TransactionSyncSuccessSchema(TransactionBaseSchema):str,Field(validation_alias="pspReference",- description=("Psp reference received from payment provider."),+ description="PSP reference received from payment provider.",),]@@ -374,7 +374,7 @@ class TransactionSessionFailureSchema(TransactionSessionBaseSchema):Field(validation_alias="pspReference",default=None,- description=("Psp reference received from payment provider."),+ description="PSP reference received from payment provider.",),]@@ -392,7 +392,7 @@ class TransactionSessionActionRequiredSchema(TransactionSessionBaseSchema):Field(validation_alias="pspReference",default=None,- description=("Psp reference received from payment provider."),+ description="PSP reference received from payment provider.",),]@@ -411,7 +411,7 @@ class TransactionSessionSuccessSchema(TransactionSessionBaseSchema):str,Field(validation_alias="pspReference",- description=("Psp reference received from payment provider."),+ description="PSP reference received from payment provider.",),]diff --git a/saleor/webhook/transport/tests/test_list_stored_payment_methods.py b/saleor/webhook/transport/tests/test_list_stored_payment_methods.pyindex 1e1fcae145..0856a1c1b7 100644--- a/saleor/webhook/transport/tests/test_list_stored_payment_methods.py+++ b/saleor/webhook/transport/tests/test_list_stored_payment_methods.py@@ -218,7 +218,7 @@ def test_get_response_for_stored_payment_method_request_delete_response_is_none(@pytest.mark.parametrize(- ("response_data"),+ "response_data",[# Response with SUCCESSFULLY_INITIALIZED result and data{