Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Move e2e tests related to discounts and taxes to separate folders (#14701)
Anna Szczęchdbfe318a80fd
diff --git a/saleor/tests/e2e/checkout/discounts/__init__.py b/saleor/tests/e2e/checkout/discounts/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/saleor/tests/e2e/checkout/discounts/promotions/__init__.py b/saleor/tests/e2e/checkout/discounts/promotions/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/saleor/tests/e2e/checkout/test_checkout_products_on_fixed_promotion.py b/saleor/tests/e2e/checkout/discounts/promotions/test_checkout_products_on_fixed_promotion.pysimilarity index 93%rename from saleor/tests/e2e/checkout/test_checkout_products_on_fixed_promotion.pyrename to saleor/tests/e2e/checkout/discounts/promotions/test_checkout_products_on_fixed_promotion.pyindex d28d4352e9..64306c9430 100644--- a/saleor/tests/e2e/checkout/test_checkout_products_on_fixed_promotion.py+++ b/saleor/tests/e2e/checkout/discounts/promotions/test_checkout_products_on_fixed_promotion.py@@ -1,10 +1,10 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..promotions.utils import create_promotion, create_promotion_rule-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from .utils import (+from ....product.utils.preparing_product import prepare_product+from ....promotions.utils import create_promotion, create_promotion_rule+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ...utils import (checkout_complete,checkout_create,checkout_delivery_method_update,diff --git a/saleor/tests/e2e/checkout/test_checkout_products_on_percentage_promotion.py b/saleor/tests/e2e/checkout/discounts/promotions/test_checkout_products_on_percentage_promotion.pysimilarity index 93%rename from saleor/tests/e2e/checkout/test_checkout_products_on_percentage_promotion.pyrename to saleor/tests/e2e/checkout/discounts/promotions/test_checkout_products_on_percentage_promotion.pyindex 5bb6181112..191264e803 100644--- a/saleor/tests/e2e/checkout/test_checkout_products_on_percentage_promotion.py+++ b/saleor/tests/e2e/checkout/discounts/promotions/test_checkout_products_on_percentage_promotion.py@@ -1,10 +1,10 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..promotions.utils import create_promotion, create_promotion_rule-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from .utils import (+from ....product.utils.preparing_product import prepare_product+from ....promotions.utils import create_promotion, create_promotion_rule+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ...utils import (checkout_complete,checkout_create,checkout_delivery_method_update,diff --git a/saleor/tests/e2e/checkout/test_checkout_with_fixed_promotion_should_not_result_in_negative_price_not.py b/saleor/tests/e2e/checkout/discounts/promotions/test_checkout_with_fixed_promotion_should_not_result_in_negative_price_not.pysimilarity index 91%rename from saleor/tests/e2e/checkout/test_checkout_with_fixed_promotion_should_not_result_in_negative_price_not.pyrename to saleor/tests/e2e/checkout/discounts/promotions/test_checkout_with_fixed_promotion_should_not_result_in_negative_price_not.pyindex 06c6b41512..b525703ed4 100644--- a/saleor/tests/e2e/checkout/test_checkout_with_fixed_promotion_should_not_result_in_negative_price_not.py+++ b/saleor/tests/e2e/checkout/discounts/promotions/test_checkout_with_fixed_promotion_should_not_result_in_negative_price_not.py@@ -1,11 +1,11 @@import pytest-from ..product.utils import get_product-from ..product.utils.preparing_product import prepare_product-from ..promotions.utils import create_promotion, create_promotion_rule-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from .utils import checkout_create+from ....product.utils import get_product+from ....product.utils.preparing_product import prepare_product+from ....promotions.utils import create_promotion, create_promotion_rule+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ...utils import checkout_create@pytest.mark.e2ediff --git a/saleor/tests/e2e/checkout/discounts/sales/__init__.py b/saleor/tests/e2e/checkout/discounts/sales/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/saleor/tests/e2e/checkout/test_checkout_product_on_fixed_sale.py b/saleor/tests/e2e/checkout/discounts/sales/test_checkout_product_on_fixed_sale.pysimilarity index 93%rename from saleor/tests/e2e/checkout/test_checkout_product_on_fixed_sale.pyrename to saleor/tests/e2e/checkout/discounts/sales/test_checkout_product_on_fixed_sale.pyindex 2d2bfc2bbb..0ea90ebf56 100644--- a/saleor/tests/e2e/checkout/test_checkout_product_on_fixed_sale.py+++ b/saleor/tests/e2e/checkout/discounts/sales/test_checkout_product_on_fixed_sale.py@@ -1,10 +1,14 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..sales.utils import create_sale, create_sale_channel_listing, sale_catalogues_add-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from .utils import (+from ....product.utils.preparing_product import prepare_product+from ....sales.utils import (+ create_sale,+ create_sale_channel_listing,+ sale_catalogues_add,+)+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ...utils import (checkout_complete,checkout_create,checkout_delivery_method_update,diff --git a/saleor/tests/e2e/checkout/test_checkout_product_on_percentage_sale.py b/saleor/tests/e2e/checkout/discounts/sales/test_checkout_product_on_percentage_sale.pysimilarity index 93%rename from saleor/tests/e2e/checkout/test_checkout_product_on_percentage_sale.pyrename to saleor/tests/e2e/checkout/discounts/sales/test_checkout_product_on_percentage_sale.pyindex 5ef742f783..de66f19860 100644--- a/saleor/tests/e2e/checkout/test_checkout_product_on_percentage_sale.py+++ b/saleor/tests/e2e/checkout/discounts/sales/test_checkout_product_on_percentage_sale.py@@ -1,10 +1,14 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..sales.utils import create_sale, create_sale_channel_listing, sale_catalogues_add-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from .utils import (+from ....product.utils.preparing_product import prepare_product+from ....sales.utils import (+ create_sale,+ create_sale_channel_listing,+ sale_catalogues_add,+)+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ...utils import (checkout_complete,checkout_create,checkout_delivery_method_update,diff --git a/saleor/tests/e2e/checkout/test_checkout_calculate_correct_discount_for_sale_and_voucher.py b/saleor/tests/e2e/checkout/discounts/test_checkout_calculate_correct_discount_for_sale_and_voucher.pysimilarity index 95%rename from saleor/tests/e2e/checkout/test_checkout_calculate_correct_discount_for_sale_and_voucher.pyrename to saleor/tests/e2e/checkout/discounts/test_checkout_calculate_correct_discount_for_sale_and_voucher.pyindex 8a8f909877..f36adf81af 100644--- a/saleor/tests/e2e/checkout/test_checkout_calculate_correct_discount_for_sale_and_voucher.py+++ b/saleor/tests/e2e/checkout/discounts/test_checkout_calculate_correct_discount_for_sale_and_voucher.py@@ -1,11 +1,11 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..sales.utils import create_sale, create_sale_channel_listing, sale_catalogues_add-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import create_voucher, create_voucher_channel_listing-from .utils import (+from ...product.utils.preparing_product import prepare_product+from ...sales.utils import create_sale, create_sale_channel_listing, sale_catalogues_add+from ...shop.utils.preparing_shop import prepare_shop+from ...utils import assign_permissions+from ...vouchers.utils import create_voucher, create_voucher_channel_listing+from ..utils import (checkout_add_promo_code,checkout_complete,checkout_create,diff --git a/saleor/tests/e2e/checkout/test_checkout_with_promotion_and_voucher.py b/saleor/tests/e2e/checkout/discounts/test_checkout_with_promotion_and_voucher.pysimilarity index 96%rename from saleor/tests/e2e/checkout/test_checkout_with_promotion_and_voucher.pyrename to saleor/tests/e2e/checkout/discounts/test_checkout_with_promotion_and_voucher.pyindex 4f23d6781a..b566ce4399 100644--- a/saleor/tests/e2e/checkout/test_checkout_with_promotion_and_voucher.py+++ b/saleor/tests/e2e/checkout/discounts/test_checkout_with_promotion_and_voucher.py@@ -1,15 +1,15 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..promotions.utils import create_promotion, create_promotion_rule-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import (+from ...product.utils.preparing_product import prepare_product+from ...promotions.utils import create_promotion, create_promotion_rule+from ...shop.utils.preparing_shop import prepare_shop+from ...utils import assign_permissions+from ...vouchers.utils import (add_catalogue_to_voucher,create_voucher,create_voucher_channel_listing,)-from .utils import (+from ..utils import (checkout_add_promo_code,checkout_complete,checkout_create,diff --git a/saleor/tests/e2e/checkout/discounts/vouchers/__init__.py b/saleor/tests/e2e/checkout/discounts/vouchers/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/saleor/tests/e2e/checkout/test_checkout_apply_voucher_to_the_specific_product_per_order.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_apply_voucher_to_the_specific_product_per_order.pysimilarity index 97%rename from saleor/tests/e2e/checkout/test_checkout_apply_voucher_to_the_specific_product_per_order.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_apply_voucher_to_the_specific_product_per_order.pyindex 3cf1463c2b..66d8fed29a 100644--- a/saleor/tests/e2e/checkout/test_checkout_apply_voucher_to_the_specific_product_per_order.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_apply_voucher_to_the_specific_product_per_order.py@@ -1,6 +1,6 @@import pytest-from ..product.utils import (+from ....product.utils import (create_category,create_product,create_product_channel_listing,@@ -8,10 +8,14 @@ from ..product.utils import (create_product_variant,create_product_variant_channel_listing,)-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import create_voucher, create_voucher_channel_listing, get_voucher-from .utils import (+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import (+ create_voucher,+ create_voucher_channel_listing,+ get_voucher,+)+from ...utils import (checkout_add_promo_code,checkout_complete,checkout_create,diff --git a/saleor/tests/e2e/checkout/test_checkout_unable_to_exceed_voucher_usage_limit.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_unable_to_exceed_voucher_usage_limit.pysimilarity index 95%rename from saleor/tests/e2e/checkout/test_checkout_unable_to_exceed_voucher_usage_limit.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_unable_to_exceed_voucher_usage_limit.pyindex 5bdf4cb0c9..312a39f189 100644--- a/saleor/tests/e2e/checkout/test_checkout_unable_to_exceed_voucher_usage_limit.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_unable_to_exceed_voucher_usage_limit.py@@ -1,10 +1,14 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import create_voucher, create_voucher_channel_listing, get_voucher-from .utils import (+from ....product.utils.preparing_product import prepare_product+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import (+ create_voucher,+ create_voucher_channel_listing,+ get_voucher,+)+from ...utils import (checkout_add_promo_code,checkout_complete,checkout_create,diff --git a/saleor/tests/e2e/checkout/test_checkout_unable_to_update_single_use_settings_after_usage.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_unable_to_update_single_use_settings_after_usage.pysimilarity index 95%rename from saleor/tests/e2e/checkout/test_checkout_unable_to_update_single_use_settings_after_usage.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_unable_to_update_single_use_settings_after_usage.pyindex 60a3f1af5c..2a0a758762 100644--- a/saleor/tests/e2e/checkout/test_checkout_unable_to_update_single_use_settings_after_usage.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_unable_to_update_single_use_settings_after_usage.py@@ -1,14 +1,14 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import (+from ....product.utils.preparing_product import prepare_product+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import (create_voucher,create_voucher_channel_listing,raw_update_voucher,)-from .utils import (+from ...utils import (checkout_add_promo_code,checkout_complete,checkout_create,diff --git a/saleor/tests/e2e/checkout/test_checkout_unable_to_use_deleted_voucher.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_unable_to_use_deleted_voucher.pysimilarity index 93%rename from saleor/tests/e2e/checkout/test_checkout_unable_to_use_deleted_voucher.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_unable_to_use_deleted_voucher.pyindex 7eb5c683ee..a8682e4871 100644--- a/saleor/tests/e2e/checkout/test_checkout_unable_to_use_deleted_voucher.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_unable_to_use_deleted_voucher.py@@ -1,15 +1,15 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import (+from ....product.utils.preparing_product import prepare_product+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import (create_voucher,create_voucher_channel_listing,get_voucher,voucher_delete,)-from .utils import checkout_create, raw_checkout_add_promo_code+from ...utils import checkout_create, raw_checkout_add_promo_codedef prepare_voucher(diff --git a/saleor/tests/e2e/checkout/test_checkout_unable_to_use_deleted_voucher_code.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_unable_to_use_deleted_voucher_code.pysimilarity index 94%rename from saleor/tests/e2e/checkout/test_checkout_unable_to_use_deleted_voucher_code.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_unable_to_use_deleted_voucher_code.pyindex 0ec3cd28ba..338a68583c 100644--- a/saleor/tests/e2e/checkout/test_checkout_unable_to_use_deleted_voucher_code.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_unable_to_use_deleted_voucher_code.py@@ -1,15 +1,15 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import (+from ....product.utils.preparing_product import prepare_product+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import (create_voucher,create_voucher_channel_listing,get_voucher,voucher_code_bulk_delete,)-from .utils import checkout_create, raw_checkout_add_promo_code+from ...utils import checkout_create, raw_checkout_add_promo_codedef create_voucher_with_multiple_codes(e2e_staff_api_client, channel_id):diff --git a/saleor/tests/e2e/checkout/test_checkout_unable_to_use_expired_voucher.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_unable_to_use_expired_voucher.pysimilarity index 94%rename from saleor/tests/e2e/checkout/test_checkout_unable_to_use_expired_voucher.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_unable_to_use_expired_voucher.pyindex bd359475ce..de04497f37 100644--- a/saleor/tests/e2e/checkout/test_checkout_unable_to_use_expired_voucher.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_unable_to_use_expired_voucher.py@@ -3,11 +3,15 @@ import datetimeimport pytestfrom django.utils import timezone-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import create_voucher, create_voucher_channel_listing, get_voucher-from .utils import (+from ....product.utils.preparing_product import prepare_product+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import (+ create_voucher,+ create_voucher_channel_listing,+ get_voucher,+)+from ...utils import (checkout_complete,checkout_create,checkout_delivery_method_update,diff --git a/saleor/tests/e2e/checkout/test_checkout_unable_to_use_not_started_voucher.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_unable_to_use_not_started_voucher.pysimilarity index 94%rename from saleor/tests/e2e/checkout/test_checkout_unable_to_use_not_started_voucher.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_unable_to_use_not_started_voucher.pyindex 7e97842af9..4f4c348564 100644--- a/saleor/tests/e2e/checkout/test_checkout_unable_to_use_not_started_voucher.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_unable_to_use_not_started_voucher.py@@ -3,11 +3,15 @@ import datetimeimport pytestfrom django.utils import timezone-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import create_voucher, create_voucher_channel_listing, get_voucher-from .utils import (+from ....product.utils.preparing_product import prepare_product+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import (+ create_voucher,+ create_voucher_channel_listing,+ get_voucher,+)+from ...utils import (checkout_complete,checkout_create,checkout_delivery_method_update,diff --git a/saleor/tests/e2e/checkout/test_checkout_use_voucher_for_cheapest_product.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_use_voucher_for_cheapest_product.pysimilarity index 95%rename from saleor/tests/e2e/checkout/test_checkout_use_voucher_for_cheapest_product.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_use_voucher_for_cheapest_product.pyindex 40416ea1a3..4bb6a78369 100644--- a/saleor/tests/e2e/checkout/test_checkout_use_voucher_for_cheapest_product.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_use_voucher_for_cheapest_product.py@@ -1,14 +1,14 @@import pytest-from ..product.utils import (+from ....product.utils import (create_product_variant,create_product_variant_channel_listing,)-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import create_voucher, create_voucher_channel_listing-from .utils import (+from ....product.utils.preparing_product import prepare_product+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import create_voucher, create_voucher_channel_listing+from ...utils import (checkout_add_promo_code,checkout_complete,checkout_create,diff --git a/saleor/tests/e2e/checkout/test_checkout_user_cannot_use_voucher_for_staff_only.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_user_cannot_use_voucher_for_staff_only.pysimilarity index 90%rename from saleor/tests/e2e/checkout/test_checkout_user_cannot_use_voucher_for_staff_only.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_user_cannot_use_voucher_for_staff_only.pyindex dc45585300..227402a491 100644--- a/saleor/tests/e2e/checkout/test_checkout_user_cannot_use_voucher_for_staff_only.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_user_cannot_use_voucher_for_staff_only.py@@ -1,10 +1,10 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import create_voucher, create_voucher_channel_listing-from .utils import checkout_create, raw_checkout_add_promo_code+from ....product.utils.preparing_product import prepare_product+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import create_voucher, create_voucher_channel_listing+from ...utils import checkout_create, raw_checkout_add_promo_codedef prepare_voucher_for_staff_only(diff --git a/saleor/tests/e2e/checkout/test_checkout_voucher_is_still_active_when_checkout_fails.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_voucher_is_still_active_when_checkout_fails.pysimilarity index 93%rename from saleor/tests/e2e/checkout/test_checkout_voucher_is_still_active_when_checkout_fails.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_voucher_is_still_active_when_checkout_fails.pyindex 66c5ee27c5..6b4408ba5a 100644--- a/saleor/tests/e2e/checkout/test_checkout_voucher_is_still_active_when_checkout_fails.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_voucher_is_still_active_when_checkout_fails.py@@ -1,11 +1,15 @@import pytest-from ..product.utils import product_variant_stock_update-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import create_voucher, create_voucher_channel_listing, get_voucher-from .utils import (+from ....product.utils import product_variant_stock_update+from ....product.utils.preparing_product import prepare_product+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import (+ create_voucher,+ create_voucher_channel_listing,+ get_voucher,+)+from ...utils import (checkout_add_promo_code,checkout_create,checkout_delivery_method_update,diff --git a/saleor/tests/e2e/checkout/test_checkout_voucher_is_still_active_when_payment_fails.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_voucher_is_still_active_when_payment_fails.pysimilarity index 94%rename from saleor/tests/e2e/checkout/test_checkout_voucher_is_still_active_when_payment_fails.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_voucher_is_still_active_when_payment_fails.pyindex 482968a9b7..be007d16e3 100644--- a/saleor/tests/e2e/checkout/test_checkout_voucher_is_still_active_when_payment_fails.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_voucher_is_still_active_when_payment_fails.py@@ -1,10 +1,14 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import create_voucher, create_voucher_channel_listing, get_voucher-from .utils import (+from ....product.utils.preparing_product import prepare_product+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import (+ create_voucher,+ create_voucher_channel_listing,+ get_voucher,+)+from ...utils import (checkout_add_promo_code,checkout_create,checkout_delivery_method_update,diff --git a/saleor/tests/e2e/checkout/test_checkout_with_fixed_voucher.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_fixed_voucher.pysimilarity index 95%rename from saleor/tests/e2e/checkout/test_checkout_with_fixed_voucher.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_fixed_voucher.pyindex 5a163950da..c25aa69341 100644--- a/saleor/tests/e2e/checkout/test_checkout_with_fixed_voucher.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_fixed_voucher.py@@ -1,10 +1,10 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import create_voucher, create_voucher_channel_listing-from .utils import (+from ....product.utils.preparing_product import prepare_product+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import create_voucher, create_voucher_channel_listing+from ...utils import (checkout_add_promo_code,checkout_complete,checkout_create,diff --git a/saleor/tests/e2e/checkout/test_checkout_with_fixed_voucher_should_not_result_in_negative_variant_price.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_fixed_voucher_should_not_result_in_negative_variant_price.pysimilarity index 94%rename from saleor/tests/e2e/checkout/test_checkout_with_fixed_voucher_should_not_result_in_negative_variant_price.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_fixed_voucher_should_not_result_in_negative_variant_price.pyindex dcb955b49b..4ba721cde4 100644--- a/saleor/tests/e2e/checkout/test_checkout_with_fixed_voucher_should_not_result_in_negative_variant_price.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_fixed_voucher_should_not_result_in_negative_variant_price.py@@ -1,10 +1,10 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import create_voucher, create_voucher_channel_listing-from .utils import (+from ....product.utils.preparing_product import prepare_product+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import create_voucher, create_voucher_channel_listing+from ...utils import (checkout_add_promo_code,checkout_complete,checkout_create,diff --git a/saleor/tests/e2e/checkout/test_checkout_with_free_shipping_voucher_with_min_quantity_of_items.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_free_shipping_voucher_with_min_quantity_of_items.pysimilarity index 95%rename from saleor/tests/e2e/checkout/test_checkout_with_free_shipping_voucher_with_min_quantity_of_items.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_free_shipping_voucher_with_min_quantity_of_items.pyindex bbb3219719..ce0831d9a0 100644--- a/saleor/tests/e2e/checkout/test_checkout_with_free_shipping_voucher_with_min_quantity_of_items.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_free_shipping_voucher_with_min_quantity_of_items.py@@ -1,10 +1,10 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import create_voucher, create_voucher_channel_listing-from .utils import (+from ....product.utils.preparing_product import prepare_product+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import create_voucher, create_voucher_channel_listing+from ...utils import (checkout_add_promo_code,checkout_complete,checkout_create,diff --git a/saleor/tests/e2e/checkout/test_checkout_with_free_shipping_voucher_with_min_spent_amount.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_free_shipping_voucher_with_min_spent_amount.pysimilarity index 95%rename from saleor/tests/e2e/checkout/test_checkout_with_free_shipping_voucher_with_min_spent_amount.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_free_shipping_voucher_with_min_spent_amount.pyindex a1a208398e..6216ad9a27 100644--- a/saleor/tests/e2e/checkout/test_checkout_with_free_shipping_voucher_with_min_spent_amount.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_free_shipping_voucher_with_min_spent_amount.py@@ -1,10 +1,10 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import create_voucher, create_voucher_channel_listing-from .utils import (+from ....product.utils.preparing_product import prepare_product+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import create_voucher, create_voucher_channel_listing+from ...utils import (checkout_add_promo_code,checkout_complete,checkout_create,diff --git a/saleor/tests/e2e/checkout/test_checkout_with_percentage_voucher.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_percentage_voucher.pysimilarity index 94%rename from saleor/tests/e2e/checkout/test_checkout_with_percentage_voucher.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_percentage_voucher.pyindex d8597e0537..93fe864a84 100644--- a/saleor/tests/e2e/checkout/test_checkout_with_percentage_voucher.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_percentage_voucher.py@@ -1,10 +1,10 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import create_voucher, create_voucher_channel_listing-from .utils import (+from ....product.utils.preparing_product import prepare_product+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import create_voucher, create_voucher_channel_listing+from ...utils import (checkout_add_promo_code,checkout_complete,checkout_create,diff --git a/saleor/tests/e2e/checkout/test_checkout_with_voucher_limit_per_customer.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_voucher_limit_per_customer.pysimilarity index 95%rename from saleor/tests/e2e/checkout/test_checkout_with_voucher_limit_per_customer.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_voucher_limit_per_customer.pyindex 8bd9499856..7fdd51f5f0 100644--- a/saleor/tests/e2e/checkout/test_checkout_with_voucher_limit_per_customer.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_voucher_limit_per_customer.py@@ -1,10 +1,14 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import create_voucher, create_voucher_channel_listing, get_voucher-from .utils import (+from ....product.utils.preparing_product import prepare_product+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import (+ create_voucher,+ create_voucher_channel_listing,+ get_voucher,+)+from ...utils import (checkout_add_promo_code,checkout_complete,checkout_create,diff --git a/saleor/tests/e2e/checkout/test_checkout_with_voucher_with_min_item_quantity.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_voucher_with_min_item_quantity.pysimilarity index 95%rename from saleor/tests/e2e/checkout/test_checkout_with_voucher_with_min_item_quantity.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_voucher_with_min_item_quantity.pyindex d6699c7d58..aa818a8441 100644--- a/saleor/tests/e2e/checkout/test_checkout_with_voucher_with_min_item_quantity.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_checkout_with_voucher_with_min_item_quantity.py@@ -1,10 +1,14 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import create_voucher, create_voucher_channel_listing, get_voucher-from .utils import (+from ....product.utils.preparing_product import prepare_product+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import (+ create_voucher,+ create_voucher_channel_listing,+ get_voucher,+)+from ...utils import (checkout_add_promo_code,checkout_complete,checkout_create,diff --git a/saleor/tests/e2e/checkout/test_only_one_voucher_per_checkout.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_only_one_voucher_per_checkout.pysimilarity index 95%rename from saleor/tests/e2e/checkout/test_only_one_voucher_per_checkout.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_only_one_voucher_per_checkout.pyindex cc2fee7615..2fa19a2178 100644--- a/saleor/tests/e2e/checkout/test_only_one_voucher_per_checkout.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_only_one_voucher_per_checkout.py@@ -1,10 +1,14 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import create_voucher, create_voucher_channel_listing, get_voucher-from .utils import (+from ....product.utils.preparing_product import prepare_product+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import (+ create_voucher,+ create_voucher_channel_listing,+ get_voucher,+)+from ...utils import (checkout_add_promo_code,checkout_complete,checkout_create,diff --git a/saleor/tests/e2e/checkout/test_should_be_able_to_remove_voucher_code_from_checkout.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_should_be_able_to_remove_voucher_code_from_checkout.pysimilarity index 95%rename from saleor/tests/e2e/checkout/test_should_be_able_to_remove_voucher_code_from_checkout.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_should_be_able_to_remove_voucher_code_from_checkout.pyindex ed26fcf20e..1bbcb05e44 100644--- a/saleor/tests/e2e/checkout/test_should_be_able_to_remove_voucher_code_from_checkout.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_should_be_able_to_remove_voucher_code_from_checkout.py@@ -1,10 +1,14 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import create_voucher, create_voucher_channel_listing, get_voucher-from .utils import (+from ....product.utils.preparing_product import prepare_product+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import (+ create_voucher,+ create_voucher_channel_listing,+ get_voucher,+)+from ...utils import (checkout_add_promo_code,checkout_complete,checkout_create,diff --git a/saleor/tests/e2e/checkout/test_staff_user_can_use_voucher_for_staff_only.py b/saleor/tests/e2e/checkout/discounts/vouchers/test_staff_user_can_use_voucher_for_staff_only.pysimilarity index 94%rename from saleor/tests/e2e/checkout/test_staff_user_can_use_voucher_for_staff_only.pyrename to saleor/tests/e2e/checkout/discounts/vouchers/test_staff_user_can_use_voucher_for_staff_only.pyindex d89ec28c86..423e3e5821 100644--- a/saleor/tests/e2e/checkout/test_staff_user_can_use_voucher_for_staff_only.py+++ b/saleor/tests/e2e/checkout/discounts/vouchers/test_staff_user_can_use_voucher_for_staff_only.py@@ -1,10 +1,10 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from ..vouchers.utils import create_voucher, create_voucher_channel_listing-from .utils import (+from ....product.utils.preparing_product import prepare_product+from ....shop.utils.preparing_shop import prepare_shop+from ....utils import assign_permissions+from ....vouchers.utils import create_voucher, create_voucher_channel_listing+from ...utils import (checkout_add_promo_code,checkout_complete,checkout_create,diff --git a/saleor/tests/e2e/checkout/taxes/__init__.py b/saleor/tests/e2e/checkout/taxes/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/saleor/tests/e2e/checkout/test_checkout_calculate_simple_taxes_based_on_shipping_country.py b/saleor/tests/e2e/checkout/taxes/test_checkout_calculate_simple_taxes_based_on_shipping_country.pysimilarity index 96%rename from saleor/tests/e2e/checkout/test_checkout_calculate_simple_taxes_based_on_shipping_country.pyrename to saleor/tests/e2e/checkout/taxes/test_checkout_calculate_simple_taxes_based_on_shipping_country.pyindex a019180b9b..fd8765bf47 100644--- a/saleor/tests/e2e/checkout/test_checkout_calculate_simple_taxes_based_on_shipping_country.py+++ b/saleor/tests/e2e/checkout/taxes/test_checkout_calculate_simple_taxes_based_on_shipping_country.py@@ -1,20 +1,20 @@import pytest-from ..channel.utils import create_channel-from ..product.utils.preparing_product import prepare_product-from ..shipping_zone.utils import (+from ...channel.utils import create_channel+from ...product.utils.preparing_product import prepare_product+from ...shipping_zone.utils import (create_shipping_method,create_shipping_method_channel_listing,create_shipping_zone,)-from ..taxes.utils import (+from ...taxes.utils import (get_tax_configurations,update_country_tax_rates,update_tax_configuration,)-from ..utils import assign_permissions-from ..warehouse.utils import create_warehouse-from .utils import (+from ...utils import assign_permissions+from ...warehouse.utils import create_warehouse+from ..utils import (checkout_billing_address_update,checkout_complete,checkout_create,diff --git a/saleor/tests/e2e/checkout/test_checkout_calculate_simple_taxes_based_on_shipping_tax_class.py b/saleor/tests/e2e/checkout/taxes/test_checkout_calculate_simple_taxes_based_on_shipping_tax_class.pysimilarity index 95%rename from saleor/tests/e2e/checkout/test_checkout_calculate_simple_taxes_based_on_shipping_tax_class.pyrename to saleor/tests/e2e/checkout/taxes/test_checkout_calculate_simple_taxes_based_on_shipping_tax_class.pyindex a071d675b0..10d0bb3e91 100644--- a/saleor/tests/e2e/checkout/test_checkout_calculate_simple_taxes_based_on_shipping_tax_class.py+++ b/saleor/tests/e2e/checkout/taxes/test_checkout_calculate_simple_taxes_based_on_shipping_tax_class.py@@ -1,16 +1,16 @@import pytest-from ..product.utils.preparing_product import prepare_product-from ..shipping_zone.utils import update_shipping_price-from ..shop.utils import prepare_shop-from ..taxes.utils import (+from ...product.utils.preparing_product import prepare_product+from ...shipping_zone.utils import update_shipping_price+from ...shop.utils import prepare_shop+from ...taxes.utils import (create_tax_class,get_tax_configurations,update_country_tax_rates,update_tax_configuration,)-from ..utils import assign_permissions-from .utils import (+from ...utils import assign_permissions+from ..utils import (checkout_complete,checkout_create,checkout_delivery_method_update,diff --git a/saleor/tests/e2e/checkout/test_checkout_calculate_simple_taxes_for_digital_product.py b/saleor/tests/e2e/checkout/taxes/test_checkout_calculate_simple_taxes_for_digital_product.pysimilarity index 95%rename from saleor/tests/e2e/checkout/test_checkout_calculate_simple_taxes_for_digital_product.pyrename to saleor/tests/e2e/checkout/taxes/test_checkout_calculate_simple_taxes_for_digital_product.pyindex 8f3ee7427b..a44c120d76 100644--- a/saleor/tests/e2e/checkout/test_checkout_calculate_simple_taxes_for_digital_product.py+++ b/saleor/tests/e2e/checkout/taxes/test_checkout_calculate_simple_taxes_for_digital_product.py@@ -1,20 +1,20 @@import pytest-from ..channel.utils import create_channel-from ..product.utils.preparing_product import prepare_digital_product-from ..shipping_zone.utils import (+from ...channel.utils import create_channel+from ...product.utils.preparing_product import prepare_digital_product+from ...shipping_zone.utils import (create_shipping_method,create_shipping_method_channel_listing,create_shipping_zone,)-from ..taxes.utils import (+from ...taxes.utils import (get_tax_configurations,update_country_tax_rates,update_tax_configuration,)-from ..utils import assign_permissions-from ..warehouse.utils import create_warehouse-from .utils import (+from ...utils import assign_permissions+from ...warehouse.utils import create_warehouse+from ..utils import (checkout_billing_address_update,checkout_complete,checkout_create,diff --git a/saleor/tests/e2e/checkout/test_checkout_calculate_simple_taxes_product_tax_class.py b/saleor/tests/e2e/checkout/taxes/test_checkout_calculate_simple_taxes_product_tax_class.pysimilarity index 95%rename from saleor/tests/e2e/checkout/test_checkout_calculate_simple_taxes_product_tax_class.pyrename to saleor/tests/e2e/checkout/taxes/test_checkout_calculate_simple_taxes_product_tax_class.pyindex 883c9e6d17..027d133e11 100644--- a/saleor/tests/e2e/checkout/test_checkout_calculate_simple_taxes_product_tax_class.py+++ b/saleor/tests/e2e/checkout/taxes/test_checkout_calculate_simple_taxes_product_tax_class.py@@ -1,16 +1,16 @@import pytest-from ..product.utils import update_product-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..taxes.utils import (+from ...product.utils import update_product+from ...product.utils.preparing_product import prepare_product+from ...shop.utils.preparing_shop import prepare_shop+from ...taxes.utils import (create_tax_class,get_tax_configurations,update_country_tax_rates,update_tax_configuration,)-from ..utils import assign_permissions-from .utils import (+from ...utils import assign_permissions+from ..utils import (checkout_complete,checkout_create,checkout_delivery_method_update,diff --git a/saleor/tests/e2e/checkout/test_checkout_calculate_simple_taxes_product_type_tax_class.py b/saleor/tests/e2e/checkout/taxes/test_checkout_calculate_simple_taxes_product_type_tax_class.pysimilarity index 97%rename from saleor/tests/e2e/checkout/test_checkout_calculate_simple_taxes_product_type_tax_class.pyrename to saleor/tests/e2e/checkout/taxes/test_checkout_calculate_simple_taxes_product_type_tax_class.pyindex ab8429b78b..23ccf0db5b 100644--- a/saleor/tests/e2e/checkout/test_checkout_calculate_simple_taxes_product_type_tax_class.py+++ b/saleor/tests/e2e/checkout/taxes/test_checkout_calculate_simple_taxes_product_type_tax_class.py@@ -1,6 +1,6 @@import pytest-from ..product.utils import (+from ...product.utils import (create_category,create_product,create_product_channel_listing,@@ -9,15 +9,15 @@ from ..product.utils import (create_product_variant_channel_listing,update_product_type,)-from ..shop.utils.preparing_shop import prepare_shop-from ..taxes.utils import (+from ...shop.utils.preparing_shop import prepare_shop+from ...taxes.utils import (create_tax_class,get_tax_configurations,update_country_tax_rates,update_tax_configuration,)-from ..utils import assign_permissions-from .utils import (+from ...utils import assign_permissions+from ..utils import (checkout_complete,checkout_create,checkout_delivery_method_update,diff --git a/saleor/tests/e2e/orders/discounts/__init__.py b/saleor/tests/e2e/orders/discounts/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/saleor/tests/e2e/orders/test_apply_better_promotion_to_product.py b/saleor/tests/e2e/orders/discounts/test_apply_better_promotion_to_product.pysimilarity index 92%rename from saleor/tests/e2e/orders/test_apply_better_promotion_to_product.pyrename to saleor/tests/e2e/orders/discounts/test_apply_better_promotion_to_product.pyindex 68b82091ec..2180f4dbfd 100644--- a/saleor/tests/e2e/orders/test_apply_better_promotion_to_product.py+++ b/saleor/tests/e2e/orders/discounts/test_apply_better_promotion_to_product.py@@ -1,12 +1,12 @@import pytest-from .. import DEFAULT_ADDRESS-from ..product.utils import get_product-from ..product.utils.preparing_product import prepare_product-from ..promotions.utils import create_promotion, create_promotion_rule-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from .utils import draft_order_create, order_lines_create+from ... import DEFAULT_ADDRESS+from ...product.utils import get_product+from ...product.utils.preparing_product import prepare_product+from ...promotions.utils import create_promotion, create_promotion_rule+from ...shop.utils.preparing_shop import prepare_shop+from ...utils import assign_permissions+from ..utils import draft_order_create, order_lines_createdef prepare_promotion_with_rules(diff --git a/saleor/tests/e2e/orders/test_order_product_with_percentage_promotion.py b/saleor/tests/e2e/orders/discounts/test_order_product_with_percentage_promotion.pysimilarity index 94%rename from saleor/tests/e2e/orders/test_order_product_with_percentage_promotion.pyrename to saleor/tests/e2e/orders/discounts/test_order_product_with_percentage_promotion.pyindex 1f7e85f56e..879e00ca45 100644--- a/saleor/tests/e2e/orders/test_order_product_with_percentage_promotion.py+++ b/saleor/tests/e2e/orders/discounts/test_order_product_with_percentage_promotion.py@@ -1,11 +1,11 @@import pytest-from .. import DEFAULT_ADDRESS-from ..product.utils.preparing_product import prepare_product-from ..promotions.utils import create_promotion, create_promotion_rule-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from .utils import (+from ... import DEFAULT_ADDRESS+from ...product.utils.preparing_product import prepare_product+from ...promotions.utils import create_promotion, create_promotion_rule+from ...shop.utils.preparing_shop import prepare_shop+from ...utils import assign_permissions+from ..utils import (draft_order_complete,draft_order_create,draft_order_update,diff --git a/saleor/tests/e2e/orders/test_order_products_from_the_same_category_on_fixed_promotion.py b/saleor/tests/e2e/orders/discounts/test_order_products_from_the_same_category_on_fixed_promotion.pysimilarity index 96%rename from saleor/tests/e2e/orders/test_order_products_from_the_same_category_on_fixed_promotion.pyrename to saleor/tests/e2e/orders/discounts/test_order_products_from_the_same_category_on_fixed_promotion.pyindex 18e2cfa888..daa65cbbb2 100644--- a/saleor/tests/e2e/orders/test_order_products_from_the_same_category_on_fixed_promotion.py+++ b/saleor/tests/e2e/orders/discounts/test_order_products_from_the_same_category_on_fixed_promotion.py@@ -1,8 +1,8 @@import pytest-from .. import DEFAULT_ADDRESS-from ..channel.utils import create_channel-from ..product.utils import (+from ... import DEFAULT_ADDRESS+from ...channel.utils import create_channel+from ...product.utils import (create_category,create_product,create_product_channel_listing,@@ -10,15 +10,15 @@ from ..product.utils import (create_product_variant,create_product_variant_channel_listing,)-from ..promotions.utils import create_promotion, create_promotion_rule-from ..shipping_zone.utils import (+from ...promotions.utils import create_promotion, create_promotion_rule+from ...shipping_zone.utils import (create_shipping_method,create_shipping_method_channel_listing,create_shipping_zone,)-from ..utils import assign_permissions-from ..warehouse.utils import create_warehouse, update_warehouse-from .utils import (+from ...utils import assign_permissions+from ...warehouse.utils import create_warehouse, update_warehouse+from ..utils import (draft_order_complete,draft_order_create,draft_order_update,diff --git a/saleor/tests/e2e/orders/test_order_products_on_fixed_promotion.py b/saleor/tests/e2e/orders/discounts/test_order_products_on_fixed_promotion.pysimilarity index 94%rename from saleor/tests/e2e/orders/test_order_products_on_fixed_promotion.pyrename to saleor/tests/e2e/orders/discounts/test_order_products_on_fixed_promotion.pyindex 099112e80a..6355a74006 100644--- a/saleor/tests/e2e/orders/test_order_products_on_fixed_promotion.py+++ b/saleor/tests/e2e/orders/discounts/test_order_products_on_fixed_promotion.py@@ -1,11 +1,11 @@import pytest-from .. import DEFAULT_ADDRESS-from ..product.utils.preparing_product import prepare_product-from ..promotions.utils import create_promotion, create_promotion_rule-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from .utils import (+from ... import DEFAULT_ADDRESS+from ...product.utils.preparing_product import prepare_product+from ...promotions.utils import create_promotion, create_promotion_rule+from ...shop.utils.preparing_shop import prepare_shop+from ...utils import assign_permissions+from ..utils import (draft_order_complete,draft_order_create,draft_order_update,diff --git a/saleor/tests/e2e/orders/test_order_products_on_fixed_sale.py b/saleor/tests/e2e/orders/discounts/test_order_products_on_fixed_sale.pysimilarity index 93%rename from saleor/tests/e2e/orders/test_order_products_on_fixed_sale.pyrename to saleor/tests/e2e/orders/discounts/test_order_products_on_fixed_sale.pyindex 37c77504c1..5558214108 100644--- a/saleor/tests/e2e/orders/test_order_products_on_fixed_sale.py+++ b/saleor/tests/e2e/orders/discounts/test_order_products_on_fixed_sale.py@@ -1,11 +1,11 @@import pytest-from .. import DEFAULT_ADDRESS-from ..product.utils.preparing_product import prepare_product-from ..sales.utils import create_sale, create_sale_channel_listing, sale_catalogues_add-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from .utils import (+from ... import DEFAULT_ADDRESS+from ...product.utils.preparing_product import prepare_product+from ...sales.utils import create_sale, create_sale_channel_listing, sale_catalogues_add+from ...shop.utils.preparing_shop import prepare_shop+from ...utils import assign_permissions+from ..utils import (draft_order_complete,draft_order_create,draft_order_update,diff --git a/saleor/tests/e2e/orders/test_order_products_on_percentage_sale.py b/saleor/tests/e2e/orders/discounts/test_order_products_on_percentage_sale.pysimilarity index 93%rename from saleor/tests/e2e/orders/test_order_products_on_percentage_sale.pyrename to saleor/tests/e2e/orders/discounts/test_order_products_on_percentage_sale.pyindex 0f537d90f7..bb96125ec1 100644--- a/saleor/tests/e2e/orders/test_order_products_on_percentage_sale.py+++ b/saleor/tests/e2e/orders/discounts/test_order_products_on_percentage_sale.py@@ -1,11 +1,11 @@import pytest-from .. import DEFAULT_ADDRESS-from ..product.utils.preparing_product import prepare_product-from ..sales.utils import create_sale, create_sale_channel_listing, sale_catalogues_add-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from .utils import (+from ... import DEFAULT_ADDRESS+from ...product.utils.preparing_product import prepare_product+from ...sales.utils import create_sale, create_sale_channel_listing, sale_catalogues_add+from ...shop.utils.preparing_shop import prepare_shop+from ...utils import assign_permissions+from ..utils import (draft_order_complete,draft_order_create,draft_order_update,diff --git a/saleor/tests/e2e/orders/test_order_products_on_promotion_and_manual_order_discount.py b/saleor/tests/e2e/orders/discounts/test_order_products_on_promotion_and_manual_order_discount.pysimilarity index 95%rename from saleor/tests/e2e/orders/test_order_products_on_promotion_and_manual_order_discount.pyrename to saleor/tests/e2e/orders/discounts/test_order_products_on_promotion_and_manual_order_discount.pyindex 4f2336223e..a3b01a0ec2 100644--- a/saleor/tests/e2e/orders/test_order_products_on_promotion_and_manual_order_discount.py+++ b/saleor/tests/e2e/orders/discounts/test_order_products_on_promotion_and_manual_order_discount.py@@ -1,11 +1,11 @@import pytest-from .. import DEFAULT_ADDRESS-from ..product.utils.preparing_product import prepare_product-from ..promotions.utils import create_promotion, create_promotion_rule-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from .utils import (+from ... import DEFAULT_ADDRESS+from ...product.utils.preparing_product import prepare_product+from ...promotions.utils import create_promotion, create_promotion_rule+from ...shop.utils.preparing_shop import prepare_shop+from ...utils import assign_permissions+from ..utils import (draft_order_complete,draft_order_create,draft_order_update,diff --git a/saleor/tests/e2e/orders/test_order_promotion_not_applied_when_not_within_time_range.py b/saleor/tests/e2e/orders/discounts/test_order_promotion_not_applied_when_not_within_time_range.pysimilarity index 91%rename from saleor/tests/e2e/orders/test_order_promotion_not_applied_when_not_within_time_range.pyrename to saleor/tests/e2e/orders/discounts/test_order_promotion_not_applied_when_not_within_time_range.pyindex 60d59e228d..e31e4a913c 100644--- a/saleor/tests/e2e/orders/test_order_promotion_not_applied_when_not_within_time_range.py+++ b/saleor/tests/e2e/orders/discounts/test_order_promotion_not_applied_when_not_within_time_range.py@@ -3,13 +3,13 @@ from datetime import datetime, timedeltaimport pytestfrom dateutil.tz import tzlocal-from .. import DEFAULT_ADDRESS-from ..product.utils import get_product-from ..product.utils.preparing_product import prepare_product-from ..promotions.utils import create_promotion, create_promotion_rule-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from .utils import draft_order_create+from ... import DEFAULT_ADDRESS+from ...product.utils import get_product+from ...product.utils.preparing_product import prepare_product+from ...promotions.utils import create_promotion, create_promotion_rule+from ...shop.utils.preparing_shop import prepare_shop+from ...utils import assign_permissions+from ..utils import draft_order_create@pytest.mark.e2ediff --git a/saleor/tests/e2e/orders/test_order_promotion_still_applied_to_the_order_when_promotion_is_removed.py b/saleor/tests/e2e/orders/discounts/test_order_promotion_still_applied_to_the_order_when_promotion_is_removed.pysimilarity index 94%rename from saleor/tests/e2e/orders/test_order_promotion_still_applied_to_the_order_when_promotion_is_removed.pyrename to saleor/tests/e2e/orders/discounts/test_order_promotion_still_applied_to_the_order_when_promotion_is_removed.pyindex f9265044bd..47fad337c8 100644--- a/saleor/tests/e2e/orders/test_order_promotion_still_applied_to_the_order_when_promotion_is_removed.py+++ b/saleor/tests/e2e/orders/discounts/test_order_promotion_still_applied_to_the_order_when_promotion_is_removed.py@@ -1,17 +1,17 @@import pytest-from .. import DEFAULT_ADDRESS-from ..product.utils.preparing_product import prepare_product-from ..product.utils.product_query import get_product-from ..promotions.utils import (+from ... import DEFAULT_ADDRESS+from ...product.utils.preparing_product import prepare_product+from ...product.utils.product_query import get_product+from ...promotions.utils import (create_promotion,create_promotion_rule,delete_promotion,promotion_query,)-from ..shop.utils.preparing_shop import prepare_shop-from ..utils import assign_permissions-from .utils import (+from ...shop.utils.preparing_shop import prepare_shop+from ...utils import assign_permissions+from ..utils import (draft_order_complete,draft_order_create,draft_order_update,diff --git a/saleor/tests/e2e/orders/taxes/__init__.py b/saleor/tests/e2e/orders/taxes/__init__.pynew file mode 100644index 0000000000..e69de29bb2diff --git a/saleor/tests/e2e/orders/test_order_calculate_simple_tax_based_on_shipping_address_tax_class.py b/saleor/tests/e2e/orders/taxes/test_order_calculate_simple_tax_based_on_shipping_address_tax_class.pysimilarity index 96%rename from saleor/tests/e2e/orders/test_order_calculate_simple_tax_based_on_shipping_address_tax_class.pyrename to saleor/tests/e2e/orders/taxes/test_order_calculate_simple_tax_based_on_shipping_address_tax_class.pyindex 26f630117d..b6f8ba7162 100644--- a/saleor/tests/e2e/orders/test_order_calculate_simple_tax_based_on_shipping_address_tax_class.py+++ b/saleor/tests/e2e/orders/taxes/test_order_calculate_simple_tax_based_on_shipping_address_tax_class.py@@ -1,20 +1,20 @@import pytest-from ..channel.utils import create_channel-from ..product.utils.preparing_product import prepare_product-from ..shipping_zone.utils import (+from ...channel.utils import create_channel+from ...product.utils.preparing_product import prepare_product+from ...shipping_zone.utils import (create_shipping_method,create_shipping_method_channel_listing,create_shipping_zone,)-from ..taxes.utils import (+from ...taxes.utils import (get_tax_configurations,update_country_tax_rates,update_tax_configuration,)-from ..utils import assign_permissions-from ..warehouse.utils import create_warehouse-from .utils import (+from ...utils import assign_permissions+from ...warehouse.utils import create_warehouse+from ..utils import (draft_order_complete,draft_order_create,draft_order_update,diff --git a/saleor/tests/e2e/orders/test_order_calculate_simple_taxes_based_on_shipping_tax_class.py b/saleor/tests/e2e/orders/taxes/test_order_calculate_simple_taxes_based_on_shipping_tax_class.pysimilarity index 95%rename from saleor/tests/e2e/orders/test_order_calculate_simple_taxes_based_on_shipping_tax_class.pyrename to saleor/tests/e2e/orders/taxes/test_order_calculate_simple_taxes_based_on_shipping_tax_class.pyindex 6322cd7d3a..9792d9fb7c 100644--- a/saleor/tests/e2e/orders/test_order_calculate_simple_taxes_based_on_shipping_tax_class.py+++ b/saleor/tests/e2e/orders/taxes/test_order_calculate_simple_taxes_based_on_shipping_tax_class.py@@ -1,17 +1,17 @@import pytest-from .. import DEFAULT_ADDRESS-from ..product.utils.preparing_product import prepare_product-from ..shipping_zone.utils import update_shipping_price-from ..shop.utils import prepare_shop-from ..taxes.utils import (+from ... import DEFAULT_ADDRESS+from ...product.utils.preparing_product import prepare_product+from ...shipping_zone.utils import update_shipping_price+from ...shop.utils import prepare_shop+from ...taxes.utils import (create_tax_class,get_tax_configurations,update_country_tax_rates,update_tax_configuration,)-from ..utils import assign_permissions-from .utils import (+from ...utils import assign_permissions+from ..utils import (draft_order_complete,draft_order_create,draft_order_update,diff --git a/saleor/tests/e2e/orders/test_order_calculate_simple_taxes_for_digital_product.py b/saleor/tests/e2e/orders/taxes/test_order_calculate_simple_taxes_for_digital_product.pysimilarity index 94%rename from saleor/tests/e2e/orders/test_order_calculate_simple_taxes_for_digital_product.pyrename to saleor/tests/e2e/orders/taxes/test_order_calculate_simple_taxes_for_digital_product.pyindex 4beeef35d8..67bd26ef3c 100644--- a/saleor/tests/e2e/orders/test_order_calculate_simple_taxes_for_digital_product.py+++ b/saleor/tests/e2e/orders/taxes/test_order_calculate_simple_taxes_for_digital_product.py@@ -1,20 +1,20 @@import pytest-from ..channel.utils import create_channel-from ..product.utils.preparing_product import prepare_digital_product-from ..shipping_zone.utils import (+from ...channel.utils import create_channel+from ...product.utils.preparing_product import prepare_digital_product+from ...shipping_zone.utils import (create_shipping_method,create_shipping_method_channel_listing,create_shipping_zone,)-from ..taxes.utils import (+from ...taxes.utils import (get_tax_configurations,update_country_tax_rates,update_tax_configuration,)-from ..utils import assign_permissions-from ..warehouse.utils import create_warehouse-from .utils import draft_order_complete, draft_order_create, order_lines_create+from ...utils import assign_permissions+from ...warehouse.utils import create_warehouse+from ..utils import draft_order_complete, draft_order_create, order_lines_createdef prepare_shop(diff --git a/saleor/tests/e2e/orders/test_order_calculate_simple_taxes_product_tax_class.py b/saleor/tests/e2e/orders/taxes/test_order_calculate_simple_taxes_product_tax_class.pysimilarity index 94%rename from saleor/tests/e2e/orders/test_order_calculate_simple_taxes_product_tax_class.pyrename to saleor/tests/e2e/orders/taxes/test_order_calculate_simple_taxes_product_tax_class.pyindex 62ef190e16..0496b61e6b 100644--- a/saleor/tests/e2e/orders/test_order_calculate_simple_taxes_product_tax_class.py+++ b/saleor/tests/e2e/orders/taxes/test_order_calculate_simple_taxes_product_tax_class.py@@ -1,17 +1,17 @@import pytest-from .. import DEFAULT_ADDRESS-from ..product.utils import update_product-from ..product.utils.preparing_product import prepare_product-from ..shop.utils.preparing_shop import prepare_shop-from ..taxes.utils import (+from ... import DEFAULT_ADDRESS+from ...product.utils import update_product+from ...product.utils.preparing_product import prepare_product+from ...shop.utils.preparing_shop import prepare_shop+from ...taxes.utils import (create_tax_class,get_tax_configurations,update_country_tax_rates,update_tax_configuration,)-from ..utils import assign_permissions-from .utils import (+from ...utils import assign_permissions+from ..utils import (draft_order_complete,draft_order_create,draft_order_update,diff --git a/saleor/tests/e2e/orders/test_order_calculate_simple_taxes_product_type_tax_class.py b/saleor/tests/e2e/orders/taxes/test_order_calculate_simple_taxes_product_type_tax_class.pysimilarity index 96%rename from saleor/tests/e2e/orders/test_order_calculate_simple_taxes_product_type_tax_class.pyrename to saleor/tests/e2e/orders/taxes/test_order_calculate_simple_taxes_product_type_tax_class.pyindex 6f5c00673b..d32a19126a 100644--- a/saleor/tests/e2e/orders/test_order_calculate_simple_taxes_product_type_tax_class.py+++ b/saleor/tests/e2e/orders/taxes/test_order_calculate_simple_taxes_product_type_tax_class.py@@ -1,7 +1,7 @@import pytest-from .. import DEFAULT_ADDRESS-from ..product.utils import (+from ... import DEFAULT_ADDRESS+from ...product.utils import (create_category,create_product,create_product_channel_listing,@@ -10,15 +10,15 @@ from ..product.utils import (create_product_variant_channel_listing,update_product_type,)-from ..shop.utils.preparing_shop import prepare_shop-from ..taxes.utils import (+from ...shop.utils.preparing_shop import prepare_shop+from ...taxes.utils import (create_tax_class,get_tax_configurations,update_country_tax_rates,update_tax_configuration,)-from ..utils import assign_permissions-from .utils import (+from ...utils import assign_permissions+from ..utils import (draft_order_complete,draft_order_create,draft_order_update,