Skip to content

Saleor Core: the high performance, composable, headless commerce API.

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.py
index 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_FEATURE
from ...core.types import Error
from ...core.types.taxes import TaxSourceObject
from ...discount.dataloaders import load_discounts
+from ...plugins.dataloaders import load_plugin_manager
TaxExemptionManageErrorCode = graphene.Enum.from_enum(
error_codes.TaxExemptionManageErrorCode
@@ -71,16 +72,15 @@ class TaxExemptionManage(BaseMutation):
@classmethod
def _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,
)