Commit 6d3e3fe2 authored by Aurel's avatar Aurel

test predicate work with test method id even if script do not take

predicate as parameter


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14976 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8b60ddfe
...@@ -136,7 +136,7 @@ class TestPredicates(ERP5TypeTestCase): ...@@ -136,7 +136,7 @@ class TestPredicates(ERP5TypeTestCase):
def stepCreatePredicateFalseScript(self, sequence=None, **kw) : def stepCreatePredicateFalseScript(self, sequence=None, **kw) :
"""Creates a script that always return false""" """Creates a script that always return false"""
createZODBPythonScript(self.getPortal().portal_skins.erp5_base, createZODBPythonScript(self.getPortal().portal_skins.erp5_base,
'Predicate_false', 'predicate', """return 0""") 'Predicate_false', '', """return 0""")
sequence.edit(test_method_id = 'Predicate_false') sequence.edit(test_method_id = 'Predicate_false')
def stepCreateTestMethodIdPredicate(self, sequence=None, **kw) : def stepCreateTestMethodIdPredicate(self, sequence=None, **kw) :
......
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