Commit 32ea1e9e authored by Rafael Monnerat's avatar Rafael Monnerat

Use set_up_once_called conflicts with setUpOnce call

  setUpOnce is executed on save but afterSetUp is not.

  bootstrapSite should be invoked once per Test Case run instead a single
  time on save phase.
parent 65622b9a
......@@ -128,10 +128,10 @@ class testSlapOSMixin(ERP5TypeTestCase):
self.portal.portal_caches._p_changed = 1
transaction.commit()
self.portal.portal_caches.updateCache()
if getattr(self.portal, 'set_up_once_called', 0):
if getattr(self.portal, 'is_site_bootstrapped', 0):
return
else:
self.portal.set_up_once_called = 1
self.portal.is_site_bootstrapped = 1
self.bootstrapSite()
self.portal._p_changed = 1
transaction.commit()
......
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