Skip to content

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

Quick update to remove charge_taxes_on_shipping imports

Gabriel L Martinezf433496080d0
diff --git a/saleor/data_feeds/google_merchant.py b/saleor/data_feeds/google_merchant.py
index db896fbc2d..b1d5ae7d79 100644
--- a/saleor/data_feeds/google_merchant.py
+++ b/saleor/data_feeds/google_merchant.py
@@ -10,7 +10,6 @@ from django.utils import timezone
from django.utils.encoding import smart_text
from django_countries.fields import Country
-from ..core.taxes import charge_taxes_on_shipping
from ..discount import DiscountInfo
from ..discount.utils import fetch_discounts
from ..plugins.manager import get_plugins_manager
@@ -119,9 +118,7 @@ def item_brand(item: ProductVariant, attributes_dict, attribute_values_dict):
def item_tax(
- item: ProductVariant,
- discounts: Iterable[DiscountInfo],
- current_site: Site,
+ item: ProductVariant, discounts: Iterable[DiscountInfo], current_site: Site,
):
"""Return item tax.
@@ -230,7 +227,6 @@ def item_attributes(
def write_feed(file_obj):
"""Write feed contents info provided file object."""
- is_charge_taxes_on_shipping = charge_taxes_on_shipping()
writer = csv.DictWriter(file_obj, ATTRIBUTES, dialect=csv.excel_tab)
writer.writeheader()
categories = Category.objects.all()
diff --git a/saleor/data_feeds/tests/test_data_feeds.py b/saleor/data_feeds/tests/test_data_feeds.py
index 0090cd9dd8..7d95c34c99 100644
--- a/saleor/data_feeds/tests/test_data_feeds.py
+++ b/saleor/data_feeds/tests/test_data_feeds.py
@@ -4,7 +4,6 @@ from unittest.mock import Mock
from django.utils.encoding import smart_text
-from ...core.taxes import charge_taxes_on_shipping
from ...product.models import AttributeValue, Category
from ..google_merchant import (
get_feed_items,