Skip to content

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

Add one more product class

Artur Smęt1d3a53654796
diff --git a/saleor/core/utils/random_data.py b/saleor/core/utils/random_data.py
index be35d628db..85f296a4b8 100644
--- a/saleor/core/utils/random_data.py
+++ b/saleor/core/utils/random_data.py
@@ -52,7 +52,17 @@ DEFAULT_SCHEMA = {
},
'different_variant_prices': True,
'images_dir': 'coffee/',
- }
+ },
+ 'Candy': {
+ 'product_attributes': {
+ 'Flavor': ['Sour', 'Sweet']
+ },
+ 'variant_attributes': {
+ 'Candy Box Size': ['100g', '250g', '500g']
+ },
+ 'images_dir': 'candy/',
+ 'different_variant_prices': True
+ },
}