Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Fix more unused imports after merging from upstream

Unknown92b8955444cf
diff --git a/saleor/dashboard/widgets.py b/saleor/dashboard/widgets.py
index 247503b6e3..5833096288 100644
--- a/saleor/dashboard/widgets.py
+++ b/saleor/dashboard/widgets.py
@@ -40,4 +40,3 @@ class CharsLeftWidget(TextInput):
"""Displays number of characters left on the right side of the label,
requires different rendering on the frontend.
"""
- pass
diff --git a/saleor/graphql/core/mutations.py b/saleor/graphql/core/mutations.py
index 28329a58ca..99dd1a07e4 100644
--- a/saleor/graphql/core/mutations.py
+++ b/saleor/graphql/core/mutations.py
@@ -327,7 +327,6 @@ class ModelDeleteMutation(ModelMutation):
Override this method to raise custom validation error and abort
the deletion process.
"""
- pass
@classmethod
def mutate(cls, root, info, **data):
diff --git a/tests/api/test_order.py b/tests/api/test_order.py
index 6f5527e360..9667367b9b 100644
--- a/tests/api/test_order.py
+++ b/tests/api/test_order.py
@@ -9,8 +9,6 @@ from saleor.graphql.order.enums import OrderEventsEmailsEnum, OrderStatusFilter
from saleor.graphql.order.mutations.orders import (
clean_order_cancel, clean_order_capture, clean_refund_payment,
clean_void_payment)
-from saleor.graphql.order.enums import (
- OrderEventsEmailsEnum, OrderStatusFilter)
from saleor.graphql.order.utils import can_finalize_draft_order
from saleor.graphql.payment.types import PaymentChargeStatusEnum
from saleor.order import OrderEvents, OrderEventsEmails, OrderStatus
diff --git a/tests/api/test_payment.py b/tests/api/test_payment.py
index 650069563e..5e6bb2bf5e 100644
--- a/tests/api/test_payment.py
+++ b/tests/api/test_payment.py
@@ -1,7 +1,6 @@
from unittest.mock import patch
import graphene
-import pytest
from saleor.core.utils import get_country_name_by_code
from saleor.graphql.payment.enums import (