details: https://code.tryton.org/tryton/commit/75340d9cde41
branch: 7.0
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 e621efa28c49 -r 75340d9cde41
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
@@ -277,7 +277,7 @@
>>> shipment_exception.form.recreate_moves.remove(move)
>>> 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()