Commit 1b45f3e6 authored by Aurel's avatar Aurel

ERP5TypeTestCase : call setSite to reinitialise the portal

This fix issues due to the publish method wiich is calling
request.close wich then call setSite without a site to reset it
parent d31e0f74
...@@ -839,6 +839,10 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase): ...@@ -839,6 +839,10 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
PAS._extractUserIds = orig_extractUserIds PAS._extractUserIds = orig_extractUserIds
# Restore security manager # Restore security manager
setSecurityManager(sm) setSecurityManager(sm)
# Restore site removed by closing of request
setSite(self.portal)
# Make sure that the skin cache does not have objects that were # Make sure that the skin cache does not have objects that were
# loaded with the connection used by the requested url. # loaded with the connection used by the requested url.
......
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