Commit 3827938e authored by Thomas Lotze's avatar Thomas Lotze

fixed zcml-related tests and dependencies

parent 14b41ba5
......@@ -8,6 +8,8 @@ CHANGES
- Fix detection of moving folders into itself or a subfolder of itself.
(#118088)
- Fixed ZCML-related tests and dependencies.
3.11.1 (2010-04-30)
-------------------
......
......@@ -62,16 +62,16 @@ setup(name='zope.container',
],
extras_require=dict(
test=['zope.configuration',
'zope.security',
'zope.testing',
]),
install_requires=['setuptools',
'zope.interface',
'zope.dottedname',
'zope.schema',
'zope.component',
'zope.component[zcml]',
'zope.event',
'zope.location>=3.5.4',
'zope.security',
'zope.security[zcml]>=3.8.0dev',
'zope.lifecycleevent>=3.5.2',
'zope.i18nmessageid',
'zope.filerepresentation',
......
......@@ -3,6 +3,10 @@
i18n_domain="zope"
>
<include file="meta.zcml" package="zope.component" />
<include file="meta.zcml" package="zope.security" />
<include file="permissions.zcml" package="zope.security" />
<adapter
provides=".interfaces.IFind"
for=".interfaces.IReadContainer"
......
<configure
xmlns="http://namespaces.zope.org/zope">
<include package="zope.component" file="meta.zcml"/>
<include package="zope.security" file="meta.zcml" />
<include package="zope.security" file="permissions.zcml" />
<include package="zope.container"/>
</configure>
......@@ -13,17 +13,10 @@ from zope.container.testing import ContainerPlacelessSetup
class ZCMLDependencies(ContainerPlacelessSetup, unittest.TestCase):
def test_zcml_can_load_with_only_zope_component_meta(self):
def test_zcml_can_load(self):
# this is just an example. It is supposed to show that the
# configure.zcml file has loaded successfully.
import zope.component
XMLConfig('meta.zcml', zope.component)()
import zope.security
XMLConfig('meta.zcml', zope.security)()
XMLConfig('permissions.zcml', zope.security)()
import zope.container
XMLConfig('configure.zcml', zope.container)()
......
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