Commit e012dc33 authored by Arnaud Fontaine's avatar Arnaud Fontaine

After modifying a portal type, commit to ensure that the accessors

will be generated. This fixes testERP5Category test.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42984 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c20b2d89
...@@ -90,8 +90,7 @@ class TestERP5Category(ERP5TypeTestCase): ...@@ -90,8 +90,7 @@ class TestERP5Category(ERP5TypeTestCase):
type_info = self.getTypeTool().Organisation type_info = self.getTypeTool().Organisation
type_info._setTypeBaseCategoryList([self.base_cat, self.base_cat2]) type_info._setTypeBaseCategoryList([self.base_cat, self.base_cat2])
# Reset aq dynamic transaction.commit()
_aq_reset()
organisation_module = self.getOrganisationModule() organisation_module = self.getOrganisationModule()
if not organisation_module.has_key('1'): if not organisation_module.has_key('1'):
...@@ -322,6 +321,7 @@ class TestERP5Category(ERP5TypeTestCase): ...@@ -322,6 +321,7 @@ class TestERP5Category(ERP5TypeTestCase):
ttool = self.getTypesTool() ttool = self.getTypesTool()
ttool['Organisation']._setTypeBaseCategoryList(['test_aq_category']) ttool['Organisation']._setTypeBaseCategoryList(['test_aq_category'])
ttool['Telephone']._setTypeBaseCategoryList(['test_aq_category']) ttool['Telephone']._setTypeBaseCategoryList(['test_aq_category'])
transaction.commit()
doc = self.organisation doc = self.organisation
subdoc = doc['1'] subdoc = doc['1']
......
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