details: https://code.tryton.org/tryton/commit/58d67088854a
branch: default
user: Cédric Krier <[email protected]>
date: Sun Aug 16 23:51:22 2026 +0200
description:
Do not rely on shipments order from sale in product kit test scenario
Closes #15016
diffstat:
modules/product_kit/tests/scenario_product_kit_sale.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 933c1cc5765a -r 58d67088854a
modules/product_kit/tests/scenario_product_kit_sale.rst
--- a/modules/product_kit/tests/scenario_product_kit_sale.rst Sat Aug 15
08:05:22 2026 +0200
+++ b/modules/product_kit/tests/scenario_product_kit_sale.rst Sun Aug 16
23:51:22 2026 +0200
@@ -272,7 +272,7 @@
... [('product', '=', product1.id)]))
>>> shipment_exception.execute('handle')
- >>> _, _, shipment = sale.shipments
+ >>> shipment, = [s for s in sale.shipments if s.state == 'waiting']
>>> len(shipment.outgoing_moves)
1
>>> backorder.reload()