Commit fe3a9b32 authored by Aurel's avatar Aurel

qa: reinitialize the portal before ERP5TypeTestCase.publish returns

publish_module_standard closes the request, which calls setSite(None),
but the caller still needs the site to be initialized.
parent 69e0e8ac
......@@ -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.
......
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