details: https://code.tryton.org/tryton/commit/e716afb04b41
branch: default
user: Cédric Krier <[email protected]>
date: Mon Dec 01 18:41:01 2025 +0100
description:
Use a random Shopify handle for product in test scenario
diffstat:
modules/web_shop_shopify/tests/scenario_web_shop_shopify.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 84fb65297976 -r e716afb04b41
modules/web_shop_shopify/tests/scenario_web_shop_shopify.rst
--- a/modules/web_shop_shopify/tests/scenario_web_shop_shopify.rst Sun Nov
23 20:37:56 2025 +0100
+++ b/modules/web_shop_shopify/tests/scenario_web_shop_shopify.rst Mon Dec
01 18:41:01 2025 +0100
@@ -215,7 +215,7 @@
>>> template.type = 'goods'
>>> template.salable = True
>>> template.web_shop_description = "<p>Product description</p>"
- >>> template.shopify_handle = 'product-1'
+ >>> template.shopify_handle = 'product-%s' % random.randint(0, 1000)
>>> template.list_price = round(Decimal('9.99') / (1 + tax.rate), 4)
>>> template.account_category = account_category
>>> template.categories.append(Category(sub_category.id))