From 82cf417ae19d5a40ab2783adb0008bbe6f7b13c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 9 Mar 2025 17:31:00 +0100 Subject: [PATCH] Add pack step to test scenario using internal shipment fee9e4e8c864 added this new step. --- .../tests/scenario_account_stock_continental.rst | 1 + .../tests/scenario_product_cost_warehouse.rst | 1 + .../tests/scenario_stock_location_move.rst | 4 +++- .../tests/scenario_stock_lot_shipment_out_internal.rst | 1 + 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/product_cost_warehouse/tests/scenario_account_stock_continental.rst b/modules/product_cost_warehouse/tests/scenario_account_stock_continental.rst index 3a3f8bf76b..30edf07d47 100644 --- a/modules/product_cost_warehouse/tests/scenario_account_stock_continental.rst +++ b/modules/product_cost_warehouse/tests/scenario_account_stock_continental.rst @@ -117,6 +117,7 @@ Transfer 1 product between warehouses:: >>> shipment.click('wait') >>> shipment.click('assign_force') + >>> shipment.click('pack') >>> shipment.click('ship') >>> shipment.state 'shipped' diff --git a/modules/product_cost_warehouse/tests/scenario_product_cost_warehouse.rst b/modules/product_cost_warehouse/tests/scenario_product_cost_warehouse.rst index 5faf477d09..887c607e11 100644 --- a/modules/product_cost_warehouse/tests/scenario_product_cost_warehouse.rst +++ b/modules/product_cost_warehouse/tests/scenario_product_cost_warehouse.rst @@ -171,6 +171,7 @@ Transfer 1 product between warehouses:: >>> shipment.state 'assigned' + >>> shipment.click('pack') >>> shipment.click('ship') >>> shipment.state 'shipped' diff --git a/modules/stock_location_move/tests/scenario_stock_location_move.rst b/modules/stock_location_move/tests/scenario_stock_location_move.rst index 9daf9f1f47..30a73e6769 100644 --- a/modules/stock_location_move/tests/scenario_stock_location_move.rst +++ b/modules/stock_location_move/tests/scenario_stock_location_move.rst @@ -109,8 +109,10 @@ Move pallet from storage1 to storage2 with lead_time:: >>> shipment.locations.append(Location(pallet.id)) >>> shipment.click('wait') >>> shipment.click('assign_try') - + >>> shipment.click('pack') >>> shipment.click('ship') + >>> shipment.state + 'shipped' >>> pallet.reload() >>> assertEqual(pallet.parent, shipment.transit_location) diff --git a/modules/stock_lot/tests/scenario_stock_lot_shipment_out_internal.rst b/modules/stock_lot/tests/scenario_stock_lot_shipment_out_internal.rst index d13b8b6403..4cd9b566b5 100644 --- a/modules/stock_lot/tests/scenario_stock_lot_shipment_out_internal.rst +++ b/modules/stock_lot/tests/scenario_stock_lot_shipment_out_internal.rst @@ -111,6 +111,7 @@ Set 2 lots:: Ship the shipment:: >>> shipment.effective_start_date = yesterday + >>> shipment.click('pack') >>> shipment.click('ship') >>> shipment.state 'shipped'