details: https://code.tryton.org/tryton/commit/f6c9a5cb0346
branch: 7.8
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
(grafted from 58d67088854ac415c961f6c265da3b6e28ce1c37)
diffstat:
modules/product_kit/tests/scenario_product_kit_sale.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r b1d1d31ee52b -r f6c9a5cb0346
modules/product_kit/tests/scenario_product_kit_sale.rst
--- a/modules/product_kit/tests/scenario_product_kit_sale.rst Sun Aug 23
08:28:53 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()