Skip to content

Commit

Permalink
Add zcml testing layer.
Browse files Browse the repository at this point in the history
  • Loading branch information
jone committed Jun 13, 2012
1 parent 913a76a commit 66ee49e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
13 changes: 13 additions & 0 deletions ftw/quota/testing.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from ftw.testing.layer import ComponentRegistryLayer


class ZCMLLayer(ComponentRegistryLayer):

def setUp(self):
super(ZCMLLayer, self).setUp()

import ftw.quota.tests
self.load_zcml_file('test.zcml', ftw.quota.tests)


ZCML_LAYER = ZCMLLayer()
8 changes: 8 additions & 0 deletions ftw/quota/tests/test.zcml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<configure
xmlns="http://namespaces.zope.org/zope">

<include package="Products.Five" file="meta.zcml" />

<include package="ftw.quota" />

</configure>
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@

tests_require = [
'collective.testcaselayer',
'ftw.testing',
'Plone',
]


setup(name='ftw.quota',
version=version,
description='Quota support for archetypes containers.',
Expand Down

0 comments on commit 66ee49e

Please sign in to comment.