From af53a08c3d2b48ef12a60198b0c52ac39b79a2cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 21 Mar 2014 23:42:15 +0100 Subject: [PATCH] Test must not rely on being run all the same day issue3769 review4461002 --- tests/scenario_stock_shipment_out.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/scenario_stock_shipment_out.rst b/tests/scenario_stock_shipment_out.rst index d15ecfc110..144c3c6979 100644 --- a/tests/scenario_stock_shipment_out.rst +++ b/tests/scenario_stock_shipment_out.rst @@ -161,12 +161,12 @@ Assign the shipment now:: [u'assigned', u'draft'] >>> effective_dates = [m.effective_date for m in ... shipment_out.inventory_moves] - >>> effective_dates == [today, None] - True + >>> len(set(effective_dates)) + 2 >>> planned_dates = [m.planned_date for m in ... shipment_out.outgoing_moves] - >>> planned_dates == [today, today] - True + >>> len(set(planned_dates)) + 1 Delete the draft move, assign and pack shipment:: @@ -203,8 +203,8 @@ Set the state as Done:: True >>> effective_dates = [m.effective_date for m in ... shipment_out.outgoing_moves] - >>> effective_dates == [today, today] - True + >>> len(set(effective_dates)) + 1 >>> len(shipment_out.outgoing_moves) 2 >>> len(shipment_out.inventory_moves)