fix import of CookieCrumbler tests on CMF2. Most of them fail because they...

fix import of CookieCrumbler tests on CMF2. Most of them fail because they need layers being set up that we don't currently do

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30829 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 69888c00
...@@ -27,8 +27,12 @@ from ZPublisher.HTTPResponse import HTTPResponse ...@@ -27,8 +27,12 @@ from ZPublisher.HTTPResponse import HTTPResponse
from Products.CMFCore.CookieCrumbler \ from Products.CMFCore.CookieCrumbler \
import CookieCrumbler, manage_addCC, Redirect import CookieCrumbler, manage_addCC, Redirect
from Products.CMFCore.tests.testCookieCrumbler import makerequest try:
from Products.CMFCore.tests.testCookieCrumbler import CookieCrumblerTests from Products.CMFCore.tests.testCookieCrumbler import makerequest
from Products.CMFCore.tests.testCookieCrumbler import CookieCrumblerTests
except ImportError:
from Products.CMFCore.tests.test_CookieCrumbler import makerequest
from Products.CMFCore.tests.test_CookieCrumbler import CookieCrumblerTests
class ERP5CookieCrumblerTests (CookieCrumblerTests): class ERP5CookieCrumblerTests (CookieCrumblerTests):
""" Modify original CMFCore Cookie Crumbler unit test to test long login """ """ Modify original CMFCore Cookie Crumbler unit test to test long login """
......
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