Cédric Krier pushed to branch branch/default at Tryton / Tryton


Commits:
ac845d4d by Cédric Krier at 2023-03-20T22:40:51+01:00
Update test scenario to follow new order of shipment moves from b5b54bf7d450
- - - - -


4 changed files:

- modules/purchase_shipment_cost/tests/scenario_purchase_shipment_cost.rst
- 
modules/purchase_shipment_cost/tests/scenario_purchase_shipment_cost_with_account_stock.rst
- modules/stock_assign_manual/tests/scenario_stock_assign_manual.rst
- modules/stock_lot/tests/scenario_stock_lot_shipment_out.rst


Changes:

=====================================
modules/purchase_shipment_cost/tests/scenario_purchase_shipment_cost.rst
=====================================
@@ -111,7 +111,7 @@
     >>> shipment.state
     'received'
     >>> [move.unit_price for move in shipment.incoming_moves] == \
-    ...     [Decimal('8.3333'), Decimal('8.3333'), Decimal('8.3334')]
+    ...     [Decimal('8.3334'), Decimal('8.3333'), Decimal('8.3333')]
     True
 
 Receive a two lines with no cost::
@@ -139,4 +139,4 @@
     >>> shipment.state
     'received'
     >>> tuple(m.unit_price for m in shipment.incoming_moves)
-    (Decimal('0.0600'), Decimal('0.0200'))
+    (Decimal('0.0200'), Decimal('0.0600'))


=====================================
modules/purchase_shipment_cost/tests/scenario_purchase_shipment_cost_with_account_stock.rst
=====================================
@@ -182,7 +182,7 @@
     >>> shipment.state
     'received'
     >>> [move.unit_price for move in shipment.incoming_moves] == \
-    ...     [Decimal('8.3333'), Decimal('8.3333'), Decimal('8.3334')]
+    ...     [Decimal('8.3334'), Decimal('8.3333'), Decimal('8.3333')]
     True
     >>> stock_in.reload()
     >>> (stock_in.debit, stock_in.credit) == \


=====================================
modules/stock_assign_manual/tests/scenario_stock_assign_manual.rst
=====================================
@@ -123,8 +123,8 @@
     ['assigned', 'assigned', 'draft']
     >>> [m.quantity for m in shipment.inventory_moves if m.state == 'assigned']
     [1.0, 1.0]
-    >>> [m.from_location for m in shipment.inventory_moves
-    ...     if m.state == 'assigned'] == [storage_loc, storage_loc2]
+    >>> {m.from_location for m in shipment.inventory_moves
+    ...     if m.state == 'assigned'} == {storage_loc, storage_loc2}
     True
 
 Assign manually remaining move::


=====================================
modules/stock_lot/tests/scenario_stock_lot_shipment_out.rst
=====================================
@@ -127,4 +127,4 @@
     ...     quantity = lot_quantities.setdefault(number, 0)
     ...     lot_quantities[number] += move.quantity
     >>> sorted(lot_quantities.items())
-    [('', 0.0), ('00001', 3.0), ('00002', 7.0)]
+    [('', 0.0), ('00001', 7.0), ('00002', 3.0)]



View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/ac845d4d67364a54692d528466826151fab41723

-- 
View it on Heptapod: 
https://foss.heptapod.net/tryton/tryton/-/commit/ac845d4d67364a54692d528466826151fab41723
You're receiving this email because of your account on foss.heptapod.net.


Reply via email to