Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix failing TaxExemptionManage tests (#10704)
Iga Karbowiakf46a0a307197
diff --git a/saleor/graphql/tax/mutations/tax_exemption_manage.py b/saleor/graphql/tax/mutations/tax_exemption_manage.pyindex 5c2b789028..3c30ef0224 100644--- a/saleor/graphql/tax/mutations/tax_exemption_manage.py+++ b/saleor/graphql/tax/mutations/tax_exemption_manage.py@@ -13,6 +13,7 @@ from ...core.descriptions import ADDED_IN_38, PREVIEW_FEATUREfrom ...core.types import Errorfrom ...core.types.taxes import TaxSourceObjectfrom ...discount.dataloaders import load_discounts+from ...plugins.dataloaders import load_plugin_managerTaxExemptionManageErrorCode = graphene.Enum.from_enum(error_codes.TaxExemptionManageErrorCode@@ -71,16 +72,15 @@ class TaxExemptionManage(BaseMutation):@classmethoddef _invalidate_checkout_prices(cls, info, checkout):+ manager = load_plugin_manager(info.context)discounts = load_discounts(info.context)- checkout_info = fetch_checkout_info(- checkout, [], discounts, info.context.plugins- )+ checkout_info = fetch_checkout_info(checkout, [], discounts, manager)lines_info, _ = fetch_checkout_lines(checkout)invalidate_checkout_prices(checkout_info,lines_info,- info.context.plugins,+ manager,discounts,save=False,)