Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use product class fixture to create product_with_no_attributes
Mira Szewczyk036267e47559
diff --git a/tests/test_product.py b/tests/test_product.pyindex e2b019e8db..aa6ab5e617 100644--- a/tests/test_product.py+++ b/tests/test_product.py@@ -15,9 +15,7 @@ from tests.utils import filter_products_by_attribute@pytest.fixture()-def product_with_no_attributes(db):- product_class = models.ProductClass.objects.create(- name='Default Class', has_variants=False, is_shipping_required=True)+def product_with_no_attributes(product_class):product = models.Product.objects.create(name='Test product', price='10.00',product_class=product_class)