Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add item tax formatter test in test_data_feeds.py
Gabriel L Martinez2a1937eacc80
diff --git a/saleor/data_feeds/tests/test_data_feeds.py b/saleor/data_feeds/tests/test_data_feeds.pyindex e303d0e2f5..e1abe77b3f 100644--- a/saleor/data_feeds/tests/test_data_feeds.py+++ b/saleor/data_feeds/tests/test_data_feeds.py@@ -11,6 +11,7 @@ from ..google_merchant import (item_attributes,item_availability,item_google_product_category,+ item_tax,write_feed,)@@ -40,6 +41,7 @@ def test_saleor_feed_items(product, site_settings):)assert attributes.get("mpn") == valid_variant.skuassert attributes.get("availability") == "in stock"+ assert attributes.get("tax") is Nonedef test_saleor_get_feed_items_having_no_stock_info(variant, site_settings):@@ -58,6 +60,12 @@ def test_category_formatter(db):assert item_google_product_category(sub_category_item, {}) == "Main > Sub"+def test_tax_formatter(variant, site_settings):+ discounts = []+ is_charge_taxes_on_shipping = charge_taxes_on_shipping()+ assert item_tax(variant, discounts, is_charge_taxes_on_shipping) is None++def test_write_feed(product, monkeypatch):buffer = StringIO()write_feed(buffer)