Commit 354ab6db authored by Jérome Perrin's avatar Jérome Perrin

Revert "ERP5Type: add support for `publish` in live tests"

This reverts commit 9c898c6808cce7ea131a655d6e3b6eef8edf52c0.
parent 5b8b51cb
......@@ -153,16 +153,6 @@ class ERP5TypeLiveTestCase(ERP5TypeTestCaseMixin):
setUp = PortalTestCase.setUp
tearDown = PortalTestCase.tearDown
def publish(self, *args, **kw):
# Zope.Testing.ZopeTestCase.functional publish, with support for request within a request
from zope.security.management import endInteraction
from zope.security.management import restoreInteraction
endInteraction()
try:
return super(ERP5TypeLiveTestCase, self).publish(*args, **kw)
finally:
restoreInteraction()
def _app(self):
'''Returns the app object for a test.'''
return self.getPortal().aq_parent
......
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