Commit 1a7ba2d0 authored by Sebastien Robin's avatar Sebastien Robin

added sequence number


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@853 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1527f350
......@@ -78,9 +78,9 @@ class Sequence:
self._step_list = []
self._dict = {}
def play(self,context,sequence=None):
ZopeTestCase._print('\nStarting New Sequence... ')
LOG('Sequence.play',0,'Starting New Sequence... ')
def play(self,context,sequence=None,sequence_number=0):
ZopeTestCase._print('\nStarting New Sequence %i... ' % sequence_number)
LOG('Sequence.play',0,'Starting New Sequence %i... ' % sequence_number)
if sequence is None:
for step in self._step_list:
step.play(context,sequence=self)
......@@ -128,8 +128,10 @@ class SequenceList:
self.addSequence(sequence)
def play(self, context):
i = 1
for sequence in self._sequence_list:
sequence.play(context)
sequence.play(context,sequence_number=i)
i+=1
......@@ -167,7 +169,7 @@ class TestOrder(ERP5TypeTestCase):
/organisation
"""
return ('erp5_crm','coramy_order')
return ('erp5_crm','coramy_catalog','coramy_order')
def getCategoriesTool(self):
return getattr(self.getPortal(), 'portal_categories', None)
......@@ -398,6 +400,9 @@ class TestOrder(ERP5TypeTestCase):
sequence_string = 'AddPurchaseOrder Tic ConfirmPurchaseOrder Tic CheckConfirmPurchaseOrder ' \
+ 'Tic ActivateRequirementList Tic CheckActivateRequirementList'
sequence_list.addSequenceString(sequence_string)
sequence_string = 'AddPurchaseOrder Tic ConfirmPurchaseOrder Tic CheckConfirmPurchaseOrder ' \
+ 'Tic CheckActivateRequirementList'
sequence_list.addSequenceString(sequence_string)
sequence_string = 'AddPurchaseOrder Tic ConfirmPurchaseOrder Tic CheckConfirmPurchaseOrder ' \
+ 'Tic ModifyPurchaseOrder Tic ConfirmPurchaseOrder Tic CheckConfirmPurchaseOrder ' \
+ 'Tic ActivateRequirementList Tic CheckActivateRequirementList'
......
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