Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Refactor import in warehouse tests
fowczrekf3c97ed4f3ee
diff --git a/saleor/warehouse/tests/test_stock.py b/saleor/warehouse/tests/test_stock.pyindex 024cb8e427..ab223a1bf7 100644--- a/saleor/warehouse/tests/test_stock.py+++ b/saleor/warehouse/tests/test_stock.py@@ -1,4 +1,4 @@-from saleor.warehouse.models import Stock+from ..models import StockCOUNTRY_CODE = "US"diff --git a/saleor/warehouse/tests/test_stock_availability.py b/saleor/warehouse/tests/test_stock_availability.pyindex 9668b11668..19b4d9fc07 100644--- a/saleor/warehouse/tests/test_stock_availability.py+++ b/saleor/warehouse/tests/test_stock_availability.py@@ -1,15 +1,15 @@import pytestfrom django.test import override_settings-from saleor.core.exceptions import InsufficientStock-from saleor.warehouse.availability import (+from ...core.exceptions import InsufficientStock+from ..availability import (are_all_product_variants_in_stock,check_stock_quantity,get_available_quantity,get_available_quantity_for_customer,get_quantity_allocated,)-from saleor.warehouse.models import Allocation, Stock+from ..models import Allocation, StockCOUNTRY_CODE = "US"diff --git a/saleor/warehouse/tests/test_stock_management.py b/saleor/warehouse/tests/test_stock_management.pyindex ce7314ad59..6b70d785b4 100644--- a/saleor/warehouse/tests/test_stock_management.py+++ b/saleor/warehouse/tests/test_stock_management.py@@ -2,15 +2,15 @@ import pytestfrom django.db.models import Sumfrom django.db.models.functions import Coalesce-from saleor.core.exceptions import InsufficientStock-from saleor.warehouse.management import (+from ...core.exceptions import InsufficientStock+from ..management import (allocate_stock,deallocate_stock,deallocate_stock_for_order,decrease_stock,increase_stock,)-from saleor.warehouse.models import Allocation+from ..models import AllocationCOUNTRY_CODE = "US"