Commit af91e022 authored by Nicolas Dumazet's avatar Nicolas Dumazet

add an assertion to make sure that no useless reindexing activities

are created when creating a Template

Failing for now; the code fixing it is on its way.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35606 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 97827f88
......@@ -369,8 +369,13 @@ class TestTemplate(ERP5TypeTestCase):
self.tic()
document.Base_makeTemplateFromDocument(form_id=None)
transaction.commit()
# making a new template should not create indexing activities,
# either for the new template or one of its subobjects
self.assertEqual(self.portal.portal_activities.getMessageList(), [])
self.tic()
self.assertTrue(document.isIndexable)
self.assertEqual(len(preference.objectIds()), 1)
template = preference.objectValues()[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