Skip to content

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

Remove unused imports

Unknowne2f23bbaa932
diff --git a/saleor/core/utils/__init__.py b/saleor/core/utils/__init__.py
index 7a0564328c..6f71b37869 100644
--- a/saleor/core/utils/__init__.py
+++ b/saleor/core/utils/__init__.py
@@ -1,6 +1,5 @@
import decimal
import logging
-import os
from json import JSONEncoder
from urllib.parse import urljoin
diff --git a/saleor/graphql/order/resolvers.py b/saleor/graphql/order/resolvers.py
index 59a28d2125..afb4c0e0f3 100644
--- a/saleor/graphql/order/resolvers.py
+++ b/saleor/graphql/order/resolvers.py
@@ -6,7 +6,6 @@ from ...order.utils import sum_order_totals
from ..utils import filter_by_period, filter_by_query_param
from .enums import OrderStatusFilter
from .types import Order
-from .utils import applicable_shipping_methods
ORDER_SEARCH_FIELDS = (
'id', 'discount_name', 'token', 'user_email', 'user__email')
diff --git a/saleor/payment/gateways/dummy/__init__.py b/saleor/payment/gateways/dummy/__init__.py
index 563144a033..5041deebe5 100644
--- a/saleor/payment/gateways/dummy/__init__.py
+++ b/saleor/payment/gateways/dummy/__init__.py
@@ -1,5 +1,5 @@
import uuid
-from typing import Dict, List
+from typing import Dict
from ... import ChargeStatus
from ...interface import GatewayResponse, PaymentData
diff --git a/tests/api/test_fulfillment.py b/tests/api/test_fulfillment.py
index aff610e0e0..3e38f04688 100644
--- a/tests/api/test_fulfillment.py
+++ b/tests/api/test_fulfillment.py
@@ -1,4 +1,4 @@
-from unittest.mock import Mock, patch
+from unittest.mock import patch
import graphene
import pytest
diff --git a/tests/test_account.py b/tests/test_account.py
index 08fd6ff69d..67e1446c22 100644
--- a/tests/test_account.py
+++ b/tests/test_account.py
@@ -1,4 +1,3 @@
-import os
import re
import uuid
from unittest.mock import patch
diff --git a/tests/test_payment.py b/tests/test_payment.py
index 2b86b2a325..e80d07be0d 100644
--- a/tests/test_payment.py
+++ b/tests/test_payment.py
@@ -1,4 +1,3 @@
-import dataclasses
from decimal import Decimal
from unittest.mock import Mock, patch