Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update item tax formatter test to check with existing taxes
Gabriel L Martinezf79995cf2bf8
diff --git a/saleor/data_feeds/tests/test_data_feeds.py b/saleor/data_feeds/tests/test_data_feeds.pyindex e1abe77b3f..13f7db138b 100644--- a/saleor/data_feeds/tests/test_data_feeds.py+++ b/saleor/data_feeds/tests/test_data_feeds.py@@ -1,4 +1,5 @@import csv+from django_prices_vatlayer.models import VATfrom io import StringIOfrom unittest.mock import Mock@@ -60,10 +61,12 @@ def test_category_formatter(db):assert item_google_product_category(sub_category_item, {}) == "Main > Sub"-def test_tax_formatter(variant, site_settings):+def test_tax_formatter(variant, vatlayer, tax_rates):discounts = []+ VAT.objects.create(country_code="US", data=tax_rates)is_charge_taxes_on_shipping = charge_taxes_on_shipping()- assert item_tax(variant, discounts, is_charge_taxes_on_shipping) is None+ item_tax_value = item_tax(variant, discounts, is_charge_taxes_on_shipping)+ assert item_tax_value == "US::23:yes"def test_write_feed(product, monkeypatch):