Commit 59b5bdec authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! ERP5TypeTestCase: reduce needless ERP5Site_reindexAll call in setUpERP5Site().

Now ERP5Site_reindex is not called during test setup, thus some tools
added before portal_activities should be reindexed explicitly.
parent 125a0481
......@@ -2208,6 +2208,12 @@ class ERP5Generator(PortalGenerator):
addERP5Tool(p, 'portal_activities', 'Activity Tool')
# Initialize Activities
p.portal_activities.manageClearActivities()
# Reindex already existing tools
for e in p.objectValues():
try:
e.reindexObject()
except TypeError:
pass
if not p.hasObject('content_type_registry'):
self.setupMimetypes(p)
......
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