Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove unused imports in tests
Unknown8ff6905626ed
diff --git a/tests/gateway/test_braintree.py b/tests/gateway/test_braintree.pyindex aa0ac26588..12dffe4237 100644--- a/tests/gateway/test_braintree.py+++ b/tests/gateway/test_braintree.py@@ -1,6 +1,5 @@-import datetimefrom decimal import Decimal-from unittest.mock import MagicMock, Mock, patch+from unittest.mock import Mock, patchimport pytestfrom braintree import (@@ -9,9 +8,7 @@ from braintree.errors import Errorsfrom braintree.exceptions import NotFoundErrorfrom braintree.validation_error import ValidationErrorfrom django.core.exceptions import ImproperlyConfigured-from prices import Money-from saleor.payment import get_payment_gatewayfrom saleor.payment.gateways.braintree import (CONFIRM_MANUALLY, THREE_D_SECURE_REQUIRED, TransactionKind, authorize,capture, create_form, extract_gateway_response, get_braintree_gateway,diff --git a/tests/gateway/test_dummy.py b/tests/gateway/test_dummy.pyindex 98a60efb44..878b3d4ee8 100644--- a/tests/gateway/test_dummy.py+++ b/tests/gateway/test_dummy.py@@ -4,7 +4,6 @@ import pytestfrom saleor.payment import (ChargeStatus, PaymentError, TransactionKind, get_payment_gateway)-from saleor.payment.gateways.dummy.forms import DummyPaymentFormfrom saleor.payment.utils import (create_payment_information, gateway_authorize, gateway_capture,gateway_charge, gateway_process_payment, gateway_refund, gateway_void)diff --git a/tests/test_core.py b/tests/test_core.pyindex e3d6b51f60..94cca19f46 100644--- a/tests/test_core.py+++ b/tests/test_core.py@@ -4,7 +4,6 @@ from unittest.mock import Mock, patchfrom urllib.parse import urljoinimport pytest-from django.db.models import Case, F, Whenfrom django.shortcuts import reversefrom django.templatetags.static import staticfrom django.urls import translate_url@@ -20,7 +19,7 @@ from saleor.core.utils.text import get_cleaner, strip_htmlfrom saleor.core.weight import WeightUnits, convert_weightfrom saleor.discount.models import Sale, Voucherfrom saleor.order.models import Order-from saleor.product.models import Product, ProductImage, ProductVariant+from saleor.product.models import ProductImagefrom saleor.shipping.models import ShippingZonetype_schema = {@@ -120,7 +119,6 @@ def test_create_fake_order(db, monkeypatch, image):for _ in random_data.create_shipping_zones():passfor _ in random_data.create_users(3):- passrandom_data.create_products_by_schema('/', 10)how_many = 5for _ in random_data.create_orders(how_many):