Commit ac4a082a authored by Arnaud Fontaine's avatar Arnaud Fontaine

Ensure that accessors are re-generated after modifying the Property

Sheets of a Portal Type



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43111 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8c86f304
......@@ -28,6 +28,7 @@
##############################################################################
import unittest
import transaction
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
from AccessControl.SecurityManagement import newSecurityManager
......@@ -722,6 +723,7 @@ class TestTask(TestTaskMixin, ERP5TypeTestCase):
if not('TaskConstraint' in original_property_sheet_list):
new_property_sheet_list = ['TaskConstraint'] + original_property_sheet_list
portal_type.edit(type_property_sheet_list=new_property_sheet_list)
transaction.commit()
task_module = portal.getDefaultModule(portal_type=self.task_portal_type)
task = task_module.newContent(portal_type=self.task_portal_type)
doActionFor = self.portal.portal_workflow.doActionFor
......@@ -752,7 +754,6 @@ class TestTask(TestTaskMixin, ERP5TypeTestCase):
finally:
portal_type.setTypePropertySheetList(original_property_sheet_list)
def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestTask))
......
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