Skip to content

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

Updated product class fixture in tests

Mira Szewczyk9bde1de20bf0
diff --git a/tests/conftest.py b/tests/conftest.py
index f4340cdd6e..7b605d07bf 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -115,7 +115,8 @@ def default_category(db): # pylint: disable=W0613
@pytest.fixture
def product_class(color_attribute, size_attribute):
product_class = ProductClass.objects.create(name='Default Class',
- has_variants=False)
+ has_variants=False,
+ is_shipping_required=True)
product_class.product_attributes.add(color_attribute)
product_class.variant_attributes.add(size_attribute)
return product_class