Commit 0ad8be7d authored by Julien Muchembled's avatar Julien Muchembled

Fix testPredicate wrt r38137,r38145

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@38561 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ab456bae
......@@ -37,7 +37,7 @@ import transaction
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from Products.ERP5Type.tests.utils import createZODBPythonScript
from AccessControl.SecurityManagement import newSecurityManager
from Products.ERP5Type.tests.Sequence import SequenceList
from Products.ERP5Type.tests.Sequence import Sequence
REGION_FRANCE_PATH = 'region/europe/western_europe/france'
REGION_GERMANY_PATH = 'region/europe/western_europe/germany'
......@@ -66,11 +66,12 @@ class TestPredicateMixIn(ERP5TypeTestCase):
self.createCategories()
self.login()
# XXX ... this method is a copy / paste
def playSequence(self, sequence_string, quiet=QUIET) :
sequence_list = SequenceList()
sequence_list.addSequenceString(sequence_string)
sequence_list.play(self, quiet=QUIET)
# don't commit between steps
sequence = Sequence()
sequence.setSequenceString(sequence_string)
for step in sequence._step_list:
step.play(self, sequence, quiet)
# XXX ... this method is a copy / paste
def createCategories(self):
......
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