[Checkins] SVN: Zope3/trunk/src/zope/app/catalog/ Added
AppCatalogLayer to existing ftests.
Baiju M
baiju.m.mail at gmail.com
Sat Feb 3 05:08:18 EST 2007
Log message for revision 72349:
Added AppCatalogLayer to existing ftests.
Changed:
U Zope3/trunk/src/zope/app/catalog/browser/ftests.py
A Zope3/trunk/src/zope/app/catalog/ftesting.zcml
A Zope3/trunk/src/zope/app/catalog/testing.py
-=-
Modified: Zope3/trunk/src/zope/app/catalog/browser/ftests.py
===================================================================
--- Zope3/trunk/src/zope/app/catalog/browser/ftests.py 2007-02-03 09:56:34 UTC (rev 72348)
+++ Zope3/trunk/src/zope/app/catalog/browser/ftests.py 2007-02-03 10:08:17 UTC (rev 72349)
@@ -1,6 +1,6 @@
##############################################################################
#
-# Copyright (c) 2004 Zope Corporation and Contributors.
+# Copyright (c) 2004-2007 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
@@ -11,14 +11,17 @@
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
-"""Functional tests for xmlrpc
+"""Functional tests for zope.app.catalog
-$Id: ftests.py 27323 2004-08-28 19:31:22Z jim $
+$Id$
"""
from zope.app.testing.functional import FunctionalDocFileSuite
+from zope.app.catalog.testing import AppCatalogLayer
def test_suite():
- return FunctionalDocFileSuite('README.txt')
+ suite = FunctionalDocFileSuite('README.txt')
+ suite.layer = AppCatalogLayer
+ return suite
if __name__ == '__main__':
import unittest
Added: Zope3/trunk/src/zope/app/catalog/ftesting.zcml
===================================================================
--- Zope3/trunk/src/zope/app/catalog/ftesting.zcml 2007-02-03 09:56:34 UTC (rev 72348)
+++ Zope3/trunk/src/zope/app/catalog/ftesting.zcml 2007-02-03 10:08:17 UTC (rev 72349)
@@ -0,0 +1,48 @@
+<configure
+ xmlns="http://namespaces.zope.org/zope"
+ i18n_domain="zope"
+ package="zope.app.catalog"
+ >
+
+ <!-- This file is the equivalent of site.zcml and it is -->
+ <!-- used for functional testing setup -->
+
+ <include package="zope.app.securitypolicy" file="meta.zcml" />
+
+ <include package="zope.app.zcmlfiles" />
+
+ <include package="zope.formlib" />
+ <include package="zope.app.zptpage"/>
+ <include package="zope.app.authentication" />
+ <include package="zope.app.keyreference" />
+ <include package="zope.app.intid" />
+ <include package="zope.app.catalog"/>
+ <include package="zope.app.zptpage.textindex" />
+
+ <include package="zope.app.securitypolicy" />
+
+ <securityPolicy
+ component="zope.app.securitypolicy.zopepolicy.ZopeSecurityPolicy" />
+
+ <role id="zope.Manager" title="Site Manager" />
+
+ <grantAll role="zope.Manager" />
+ <include package="zope.app.securitypolicy.tests" file="functional.zcml" />
+
+ <!-- Principal that tests generally run as -->
+ <principal
+ id="zope.mgr"
+ title="Manager"
+ login="mgr"
+ password="mgrpw" />
+
+ <!-- Bootstrap principal used to make local grant to the principal above -->
+ <principal
+ id="zope.globalmgr"
+ title="Manager"
+ login="globalmgr"
+ password="globalmgrpw" />
+
+ <grant role="zope.Manager" principal="zope.globalmgr" />
+
+</configure>
Property changes on: Zope3/trunk/src/zope/app/catalog/ftesting.zcml
___________________________________________________________________
Name: svn:eol-style
+ native
Added: Zope3/trunk/src/zope/app/catalog/testing.py
===================================================================
--- Zope3/trunk/src/zope/app/catalog/testing.py 2007-02-03 09:56:34 UTC (rev 72348)
+++ Zope3/trunk/src/zope/app/catalog/testing.py 2007-02-03 10:08:17 UTC (rev 72349)
@@ -0,0 +1,27 @@
+##############################################################################
+#
+# Copyright (c) 2007 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""zope.app.catalog common test related classes/functions/objects.
+
+$Id$
+"""
+
+__docformat__ = "reStructuredText"
+
+import os
+from zope.app.testing.functional import ZCMLLayer
+
+AppCatalogLayer = ZCMLLayer(
+ os.path.join(os.path.split(__file__)[0], 'ftesting.zcml'),
+ __name__, 'AppCatalogLayer', allow_teardown=True)
+
Property changes on: Zope3/trunk/src/zope/app/catalog/testing.py
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
More information about the Checkins
mailing list