Test must not rely on being run all the same day

issue3769
review4461002
This commit is contained in:
Cédric Krier committed 2014-03-21 23:42:15 +01:00
1 parent e6ae402a14
commit af53a08c3d
1 file changed
+6 -6
+6 -6
View File
@@ -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)