Commit 1ca53e87 authored by Aurel's avatar Aurel Committed by 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 b16394c4
......@@ -839,6 +839,10 @@ class ERP5TypeTestCaseMixin(ProcessingNodeTestCase, PortalTestCase):
PAS._extractUserIds = orig_extractUserIds
# Restore security manager
setSecurityManager(sm)
# Restore site removed by closing of request
setSite(self.portal)
# Make sure that the skin cache does not have objects that were
# loaded with the connection used by the requested url.
......
  • ERP5TypeTestCase : call setSite to reinitialise the portal

    qa: reinitialize the portal before ERP5TypeTestCase.publish returns

    This fix issues due to the publish method wiich is calling request.close wich then call setSite without a site to reset it

    publish_module_standard closes the request, which calls setSite(None), but the caller still needs the site to be initialized.

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