Commit 215a8b4e authored by Julien Muchembled's avatar Julien Muchembled

Fix TestCopySupport.test_03_unindexObjectGrouping

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38094 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 583a7b67
......@@ -129,18 +129,20 @@ class TestCopySupport(ERP5TypeTestCase):
ActivityTool_invokeGroup = ActivityTool.invokeGroup
invokeGroup_list = []
def invokeGroup(self, method_id, message_list, activity):
def invokeGroup(self, method_id, message_list, activity, merge_duplicate):
invokeGroup_list.extend((method_id,
sorted(m.kw.get('uid') for m in message_list),
activity))
return ActivityTool_invokeGroup(self, method_id, message_list, activity)
activity,
merge_duplicate))
return ActivityTool_invokeGroup(self, method_id, message_list,
activity, merge_duplicate)
try:
ActivityTool.invokeGroup = invokeGroup
self.tic()
finally:
ActivityTool.invokeGroup = ActivityTool_invokeGroup
self.assertEqual(invokeGroup_list,
['portal_catalog/uncatalogObjectList', uid_list, 'SQLQueue'])
['portal_catalog/uncatalogObjectList', uid_list, 'SQLQueue', False])
self.assertEqual(len(search_catalog(uid=uid_list)), 0)
......
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