Commit 5af48b01 authored by Sebastien Robin's avatar Sebastien Robin

reindex simulation line after the change of the start date


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3478 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a156bdf1
...@@ -247,6 +247,7 @@ class Test(TestOrderMixin,ERP5TypeTestCase): ...@@ -247,6 +247,7 @@ class Test(TestOrderMixin,ERP5TypeTestCase):
self.assertEquals(len(simulation_line_list),1) self.assertEquals(len(simulation_line_list),1)
for simulation_line in simulation_line_list: for simulation_line in simulation_line_list:
simulation_line.setStartDate(self.datetime+15) simulation_line.setStartDate(self.datetime+15)
simulation_line.immediateReindexObject()
def stepAdoptPrevision(self,sequence=None, sequence_list=None, **kw): def stepAdoptPrevision(self,sequence=None, sequence_list=None, **kw):
""" """
...@@ -319,6 +320,7 @@ class Test(TestOrderMixin,ERP5TypeTestCase): ...@@ -319,6 +320,7 @@ class Test(TestOrderMixin,ERP5TypeTestCase):
""" """
packing_list = sequence.get('packing_list') packing_list = sequence.get('packing_list')
self.assertEquals(0,packing_list.isPacked()) self.assertEquals(0,packing_list.isPacked())
self.assertEquals('missing',packing_list.getContainerState())
def stepCheckPackingListIsPacked(self,sequence=None, sequence_list=None, **kw): def stepCheckPackingListIsPacked(self,sequence=None, sequence_list=None, **kw):
""" """
...@@ -327,6 +329,7 @@ class Test(TestOrderMixin,ERP5TypeTestCase): ...@@ -327,6 +329,7 @@ class Test(TestOrderMixin,ERP5TypeTestCase):
""" """
packing_list = sequence.get('packing_list') packing_list = sequence.get('packing_list')
self.assertEquals(1,packing_list.isPacked()) self.assertEquals(1,packing_list.isPacked())
self.assertEquals('packed',packing_list.getContainerState())
def stepCommit(self, sequence=None, sequence_list=None, **kw): def stepCommit(self, sequence=None, sequence_list=None, **kw):
""" """
...@@ -469,7 +472,7 @@ class Test(TestOrderMixin,ERP5TypeTestCase): ...@@ -469,7 +472,7 @@ class Test(TestOrderMixin,ERP5TypeTestCase):
sequence_list.play(self) sequence_list.play(self)
def test_08_AddContainers(self, quiet=0, run=1): def test_08_AddContainers(self, quiet=0, run=run_all_test):
""" """
Test generation of delivery list Test generation of delivery list
""" """
...@@ -486,7 +489,6 @@ class Test(TestOrderMixin,ERP5TypeTestCase): ...@@ -486,7 +489,6 @@ class Test(TestOrderMixin,ERP5TypeTestCase):
Tic \ Tic \
CheckPackingListIsPacked \ CheckPackingListIsPacked \
' '
#CheckNewPackingListAfterStartDateAdopt \
# XXX Check if there is a new packing list created # XXX Check if there is a new packing list created
sequence_list.addSequenceString(sequence_string) sequence_list.addSequenceString(sequence_string)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment