Commit 34f876be authored by Aurel's avatar Aurel

use the new path to ZopeTestCase.utils

parent 6ecbc859
...@@ -86,6 +86,9 @@ class ERP5TypeLiveTestCase(ERP5TypeTestCaseMixin): ...@@ -86,6 +86,9 @@ class ERP5TypeLiveTestCase(ERP5TypeTestCaseMixin):
site = getSite() site = getSite()
# reconstruct the acquistion chain with an independant request. # reconstruct the acquistion chain with an independant request.
# RequestContainer -> Application -> Site # RequestContainer -> Application -> Site
try:
from ZServer.Testing.utils import makerequest
except ImportError: # BBB Zope2
from Testing.ZopeTestCase.utils import makerequest from Testing.ZopeTestCase.utils import makerequest
portal = getattr(makerequest(site.aq_parent), site.getId()) portal = getattr(makerequest(site.aq_parent), site.getId())
......
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