[Checkins] SVN: zope.configuration/branches/tseaver-test_cleanup/ Rename no-longer-intended-for-test-discovery module.
Tres Seaver
cvs-admin at zope.org
Tue May 8 01:18:26 UTC 2012
Log message for revision 125713:
Rename no-longer-intended-for-test-discovery module.
Changed:
U zope.configuration/branches/tseaver-test_cleanup/docs/narr.rst
A zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/tests/conditions.py
U zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/tests/conditions.zcml
D zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/tests/test_conditions.py
-=-
Modified: zope.configuration/branches/tseaver-test_cleanup/docs/narr.rst
===================================================================
--- zope.configuration/branches/tseaver-test_cleanup/docs/narr.rst 2012-05-08 01:18:17 UTC (rev 125712)
+++ zope.configuration/branches/tseaver-test_cleanup/docs/narr.rst 2012-05-08 01:18:23 UTC (rev 125713)
@@ -98,7 +98,7 @@
.. doctest::
- >>> from zope.configuration.tests.test_conditions import registry
+ >>> from zope.configuration.tests.conditions import registry
>>> registry
[]
Copied: zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/tests/conditions.py (from rev 125712, zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/tests/test_conditions.py)
===================================================================
--- zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/tests/conditions.py (rev 0)
+++ zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/tests/conditions.py 2012-05-08 01:18:23 UTC (rev 125713)
@@ -0,0 +1,35 @@
+##############################################################################
+#
+# Copyright (c) 2003 Zope Foundation 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.
+#
+##############################################################################
+""" Enable "Making specific directives condition" section of narrative docs.
+"""
+from zope.interface import Interface
+from zope.schema import Id
+
+
+class IRegister(Interface):
+ """Trivial sample registry."""
+
+ id = Id(
+ title=u"Identifier",
+ description=u"Some identifier that can be checked.",
+ required=True,
+ )
+
+registry = []
+
+def register(context, id):
+ context.action(discriminator=('Register', id),
+ callable=registry.append,
+ args=(id,)
+ )
Modified: zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/tests/conditions.zcml
===================================================================
--- zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/tests/conditions.zcml 2012-05-08 01:18:17 UTC (rev 125712)
+++ zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/tests/conditions.zcml 2012-05-08 01:18:23 UTC (rev 125713)
@@ -8,8 +8,8 @@
<meta:directive
name="register"
namespace="http://sample.namespaces.zope.org/test"
- schema=".test_conditions.IRegister"
- handler=".test_conditions.register"
+ schema=".conditions.IRegister"
+ handler=".conditions.register"
>
This registers a directive which creates registrations we can test.
</meta:directive>
Deleted: zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/tests/test_conditions.py
===================================================================
--- zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/tests/test_conditions.py 2012-05-08 01:18:17 UTC (rev 125712)
+++ zope.configuration/branches/tseaver-test_cleanup/src/zope/configuration/tests/test_conditions.py 2012-05-08 01:18:23 UTC (rev 125713)
@@ -1,41 +0,0 @@
-##############################################################################
-#
-# Copyright (c) 2003 Zope Foundation 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.
-#
-##############################################################################
-""" Enable "Making specific directives condition" section of narrative docs.
-"""
-import unittest
-
-from zope.interface import Interface
-from zope.schema import Id
-
-
-class IRegister(Interface):
- """Trivial sample registry."""
-
- id = Id(
- title=u"Identifier",
- description=u"Some identifier that can be checked.",
- required=True,
- )
-
-registry = []
-
-def register(context, id):
- context.action(discriminator=('Register', id),
- callable=registry.append,
- args=(id,)
- )
-
-def test_suite():
- # dead chicken for the test finder
- return unittest.TestSuite()
More information about the checkins
mailing list