Commit 21222c85 authored by Nicolas Dumazet's avatar Nicolas Dumazet

this test was only passing due to luck, as destination category is manipulated

elsewhere.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42801 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8e37e54d
......@@ -2399,10 +2399,24 @@ class TestPropertySheet:
def test_aq_reset_on_portal_types_properties_change(self):
doc = self.portal.person_module.newContent(portal_type='Person')
ti = self.getTypesTool()['Person']
base_category_list = ti.getTypeBaseCategoryList()
# this test is poorly isolated, and the _19*_ add destination
# to the base categories
if 'destination' not in base_category_list:
self.assertFalse(hasattr(doc, 'getDestination'))
ti.edit(type_base_category_list=
ti.getTypeBaseCategoryList() + ['destination'])
base_category_list + ['destination'])
transaction.commit()
self.assertTrue(hasattr(doc, 'getDestination'))
else:
self.assertTrue(hasattr(doc, 'getDestination'))
base_category_list.remove('destination')
ti.edit(type_base_category_list=base_category_list)
transaction.commit()
self.assertFalse(hasattr(doc, 'getDestination'))
def test_aq_reset_on_workflow_chain_change(self):
doc = self.portal.person_module.newContent(portal_type='Person')
......
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