Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Refactor import in fixtures
fowczrekf1242eb3a23a
diff --git a/saleor/tests/fixtures.py b/saleor/tests/fixtures.pyindex a73909c41f..68747b3a45 100644--- a/saleor/tests/fixtures.py+++ b/saleor/tests/fixtures.py@@ -20,35 +20,35 @@ from django_countries import countriesfrom PIL import Imagefrom prices import Money, TaxedMoney-from saleor.account.models import Address, StaffNotificationRecipient, User-from saleor.app.models import App-from saleor.checkout import utils-from saleor.checkout.models import Checkout-from saleor.checkout.utils import add_variant_to_checkout-from saleor.core.payments import PaymentInterface-from saleor.discount import DiscountInfo, DiscountValueType, VoucherType-from saleor.discount.models import (+from ..account.models import Address, StaffNotificationRecipient, User+from ..app.models import App+from ..checkout import utils+from ..checkout.models import Checkout+from ..checkout.utils import add_variant_to_checkout+from ..core.payments import PaymentInterface+from ..discount import DiscountInfo, DiscountValueType, VoucherType+from ..discount.models import (Sale,SaleTranslation,Voucher,VoucherCustomer,VoucherTranslation,)-from saleor.giftcard.models import GiftCard-from saleor.menu.models import Menu, MenuItem, MenuItemTranslation-from saleor.menu.utils import update_menu-from saleor.order import OrderStatus-from saleor.order.actions import cancel_fulfillment, fulfill_order_line-from saleor.order.events import OrderEvents-from saleor.order.models import FulfillmentStatus, Order, OrderEvent, OrderLine-from saleor.order.utils import recalculate_order-from saleor.page.models import Page, PageTranslation-from saleor.payment import ChargeStatus, TransactionKind-from saleor.payment.models import Payment-from saleor.plugins.models import PluginConfiguration-from saleor.plugins.vatlayer.plugin import VatlayerPlugin-from saleor.product import AttributeInputType-from saleor.product.models import (+from ..giftcard.models import GiftCard+from ..menu.models import Menu, MenuItem, MenuItemTranslation+from ..menu.utils import update_menu+from ..order import OrderStatus+from ..order.actions import cancel_fulfillment, fulfill_order_line+from ..order.events import OrderEvents+from ..order.models import FulfillmentStatus, Order, OrderEvent, OrderLine+from ..order.utils import recalculate_order+from ..page.models import Page, PageTranslation+from ..payment import ChargeStatus, TransactionKind+from ..payment.models import Payment+from ..plugins.models import PluginConfiguration+from ..plugins.vatlayer.plugin import VatlayerPlugin+from ..product import AttributeInputType+from ..product.models import (Attribute,AttributeTranslation,AttributeValue,@@ -66,20 +66,20 @@ from saleor.product.models import (ProductVariant,ProductVariantTranslation,)-from saleor.product.tests.utils import create_image-from saleor.product.utils.attributes import associate_attribute_values_to_instance-from saleor.shipping.models import (+from ..product.tests.utils import create_image+from ..product.utils.attributes import associate_attribute_values_to_instance+from ..shipping.models import (ShippingMethod,ShippingMethodTranslation,ShippingMethodType,ShippingZone,)-from saleor.site import AuthenticationBackends-from saleor.site.models import AuthorizationKey, SiteSettings-from saleor.warehouse.models import Allocation, Stock, Warehouse-from saleor.webhook.event_types import WebhookEventType-from saleor.webhook.models import Webhook-from saleor.wishlist.models import Wishlist+from ..site import AuthenticationBackends+from ..site.models import AuthorizationKey, SiteSettings+from ..warehouse.models import Allocation, Stock, Warehouse+from ..webhook.event_types import WebhookEventType+from ..webhook.models import Webhook+from ..wishlist.models import Wishlistclass CaptureQueriesContext(BaseCaptureQueriesContext):diff --git a/saleor/tests/settings.py b/saleor/tests/settings.pyindex 6330ac5166..45a7d342dd 100644--- a/saleor/tests/settings.py+++ b/saleor/tests/settings.py@@ -3,7 +3,7 @@ from typing import List, Pattern, Unionfrom django.utils.functional import SimpleLazyObject-from saleor.settings import * # noqa+from ..settings import * # noqadef lazy_re_compile(regex, flags=0):