[Checkins] SVN: megrok.chameleon/trunk/src/megrok/chameleon/tests/__init__.py Use new test layer from z.a.wsgi.
Uli Fouquet
uli at gnufix.de
Thu May 20 09:13:29 EDT 2010
Log message for revision 112566:
Use new test layer from z.a.wsgi.
Changed:
U megrok.chameleon/trunk/src/megrok/chameleon/tests/__init__.py
-=-
Modified: megrok.chameleon/trunk/src/megrok/chameleon/tests/__init__.py
===================================================================
--- megrok.chameleon/trunk/src/megrok/chameleon/tests/__init__.py 2010-05-20 11:46:52 UTC (rev 112565)
+++ megrok.chameleon/trunk/src/megrok/chameleon/tests/__init__.py 2010-05-20 13:13:28 UTC (rev 112566)
@@ -1,6 +1,6 @@
##############################################################################
#
-# Copyright (c) 2006-2007 Zope Corporation and Contributors.
+# Copyright (c) 2006-2010 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
@@ -12,10 +12,9 @@
#
##############################################################################
# $Id$ $Rev$ $Author$ $Date$
-import os.path
+"""A functional test layer.
+"""
import megrok.chameleon
-from zope.app.testing.functional import ZCMLLayer
+from zope.app.wsgi.testlayer import BrowserLayer
-ftesting_zcml = os.path.join(
- os.path.dirname(megrok.chameleon.__file__), 'ftesting.zcml')
-FunctionalLayer = ZCMLLayer(ftesting_zcml, __name__, 'FunctionalLayer')
+FunctionalLayer = BrowserLayer(megrok.chameleon, 'ftesting.zcml')
More information about the checkins
mailing list