Commit abf5dadc authored by Julien Muchembled's avatar Julien Muchembled

Check that tested object is properly indexed at end of test_02_unindexObjectDependency

Now that ZSQLCatalog accepts to index an object whose path is "deleted" in the
catalog, we must protect against any misuse or bug of CMFActivity.
parent 07c81fa9
......@@ -89,9 +89,13 @@ class TestCopySupport(ERP5TypeTestCase):
person = self.portal.person_module.newContent(portal_type='Person',
address_city='Lille')
self.tic()
getPath = self.portal.portal_catalog.getPath
address = person.default_address
self.assertEqual(address.getPath(), getPath(address.getUid()))
person.recursiveReindexObject()
person.default_address.setId('old_address')
address.setId('old_address')
self.tic()
self.assertEqual(address.getPath(), getPath(address.getUid()))
def test_03_unindexObjectGrouping(self):
person = 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