Commit 841accbf authored by wenjie.zheng's avatar wenjie.zheng

testERP5Type.py: modification according to new addWorkflowToType feature

parent fb7ddb19
......@@ -2491,7 +2491,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
def test_aq_reset_on_workflow_method_change(self):
doc = self.portal.person_module.newContent(portal_type='Person')
self.portal.portal_workflow.addWorkflowToType(self.portal.portal_types._getOb('Person'), 'delivery_causality_workflow')
self.portal.portal_workflow.addWorkflowToType(self.portal.portal_types._getOb('Person'), ('delivery_causality_workflow',))
self.commit()
self.assertTrue(hasattr(doc, 'diverge'))
......@@ -2512,7 +2512,7 @@ class TestERP5Type(PropertySheetTestCase, LogInterceptor):
def test_aq_reset_on_workflow_state_variable_change(self):
doc = self.portal.person_module.newContent(portal_type='Person')
self.portal.portal_workflow.addWorkflowToType(self.portal.portal_types._getOb('Person'), 'delivery_causality_workflow')
self.portal.portal_workflow.addWorkflowToType(self.portal.portal_types._getOb('Person'), ('delivery_causality_workflow',))
self.commit()
self.assertTrue(hasattr(doc, 'getCausalityState'))
wf = self.portal.portal_workflow.delivery_causality_workflow
......
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