Skip to content

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

Adjust export test

Piotr Grundas8a75d1db4acc
diff --git a/saleor/csv/tests/export/products_data/test_get_products_data.py b/saleor/csv/tests/export/products_data/test_get_products_data.py
index 411072d0ff..b37b8b424c 100644
--- a/saleor/csv/tests/export/products_data/test_get_products_data.py
+++ b/saleor/csv/tests/export/products_data/test_get_products_data.py
@@ -229,14 +229,15 @@ def test_get_products_data_for_product_without_channel(
def test_get_products_data_for_specified_warehouses_channels_and_attributes(
- product,
- variant_with_many_stocks,
- product_with_image,
- product_with_variant_with_two_attributes,
file_attribute,
+ page_list,
+ product,
product_type_page_reference_attribute,
product_type_product_reference_attribute,
- page_list,
+ product_with_image,
+ product_with_variant_with_two_attributes,
+ text_attribute,
+ variant_with_many_stocks,
):
# given
product.variants.add(variant_with_many_stocks)
@@ -244,11 +245,13 @@ def test_get_products_data_for_specified_warehouses_channels_and_attributes(
file_attribute,
product_type_page_reference_attribute,
product_type_product_reference_attribute,
+ text_attribute,
)
product.product_type.product_attributes.add(
file_attribute,
product_type_page_reference_attribute,
product_type_product_reference_attribute,
+ text_attribute,
)
# add file attribute
@@ -259,6 +262,14 @@ def test_get_products_data_for_specified_warehouses_channels_and_attributes(
product, file_attribute, file_attribute.values.first()
)
+ # add text attribute
+ associate_attribute_values_to_instance(
+ variant_with_many_stocks, text_attribute, text_attribute.values.first()
+ )
+ associate_attribute_values_to_instance(
+ product, text_attribute, text_attribute.values.first()
+ )
+
# add page reference attribute
product_page_ref_value = AttributeValue.objects.create(
attribute=product_type_page_reference_attribute,