Commit 1980a598 authored by Julien Muchembled's avatar Julien Muchembled

TestPackingList.test_11_: check packing list after solving divergences

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38814 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 809ca1ed
...@@ -197,7 +197,6 @@ class TestPackingListMixin(TestOrderMixin): ...@@ -197,7 +197,6 @@ class TestPackingListMixin(TestOrderMixin):
Test if packing list is divergent Test if packing list is divergent
""" """
packing_list = sequence.get('new_packing_list') packing_list = sequence.get('new_packing_list')
self.failIf('Site Error' in packing_list.view())
self.stepCheckPackingListIsDivergent(packing_list=packing_list,sequence=sequence) self.stepCheckPackingListIsDivergent(packing_list=packing_list,sequence=sequence)
def stepCheckPackingListIsCalculating(self, sequence=None, sequence_list=None, **kw): def stepCheckPackingListIsCalculating(self, sequence=None, sequence_list=None, **kw):
...@@ -214,6 +213,10 @@ class TestPackingListMixin(TestOrderMixin): ...@@ -214,6 +213,10 @@ class TestPackingListMixin(TestOrderMixin):
packing_list = sequence.get('packing_list') packing_list = sequence.get('packing_list')
self.assertEquals('solved',packing_list.getCausalityState()) self.assertEquals('solved',packing_list.getCausalityState())
def stepCheckNewPackingListIsSolved(self, sequence=None, sequence_list=None, **kw):
packing_list = sequence.get('new_packing_list')
self.assertEquals('solved', packing_list.getCausalityState())
def stepCheckPackingListIsDiverged(self, sequence=None, sequence_list=None, **kw): def stepCheckPackingListIsDiverged(self, sequence=None, sequence_list=None, **kw):
""" """
Test if packing list is divergent Test if packing list is divergent
...@@ -1396,6 +1399,7 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) : ...@@ -1396,6 +1399,7 @@ class TestPackingList(TestPackingListMixin, ERP5TypeTestCase) :
NewPackingListAdoptPrevisionQuantity NewPackingListAdoptPrevisionQuantity
Tic Tic
CheckPackingListIsSolved CheckPackingListIsSolved
CheckNewPackingListIsSolved
CheckPackingListSplittedTwoTimes CheckPackingListSplittedTwoTimes
""" """
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