changeset 27aee08d2f4e in modules/stock_lot_unit:default
details:
https://hg.tryton.org/modules/stock_lot_unit?cmd=changeset&node=27aee08d2f4e
description:
Set lot after assignation in test scenario
issue10671
diffstat:
tests/scenario_stock_lot_unit.rst | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (50 lines):
diff -r 72ce20e52f47 -r 27aee08d2f4e tests/scenario_stock_lot_unit.rst
--- a/tests/scenario_stock_lot_unit.rst Wed Apr 06 23:37:44 2022 +0200
+++ b/tests/scenario_stock_lot_unit.rst Fri Apr 08 18:58:33 2022 +0200
@@ -98,10 +98,10 @@
>>> move.unit_price = Decimal('20')
>>> move.from_location = output_loc
>>> move.to_location = customer_loc
- >>> move.lot = lot
>>> shipment.click('wait')
>>> shipment.click('assign_try')
True
+ >>> move.lot = lot
>>> shipment.click('pick')
>>> shipment.click('pack')
>>> shipment.click('done')
@@ -119,17 +119,19 @@
>>> move1.unit_price = Decimal('20')
>>> move1.from_location = output_loc
>>> move1.to_location = customer_loc
- >>> move1.lot = lot
>>> move2 = shipment.outgoing_moves.new()
>>> move2.product = product
>>> move2.quantity = 1
>>> move2.unit_price = Decimal('20')
>>> move2.from_location = output_loc
>>> move2.to_location = customer_loc
- >>> move2.lot = lot
>>> shipment.click('wait')
>>> shipment.click('assign_try')
True
+ >>> move1, move2 = shipment.inventory_moves
+ >>> move1.lot = lot
+ >>> move2.lot = lot
+ >>> shipment.save()
>>> shipment.click('pick') # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
@@ -149,10 +151,11 @@
>>> move.unit_price = Decimal('20')
>>> move.from_location = output_loc
>>> move.to_location = customer_loc
- >>> move.lot = lot
>>> shipment.click('wait')
>>> shipment.click('assign_try')
True
+ >>> move, = shipment.inventory_moves
+ >>> move.lot = lot
>>> shipment.click('pick') # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...