diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-10-16 00:47:13 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-10-16 00:47:13 +0000 |
| commit | 0dc26efaddf70c02cac7e84245666340f13abd29 (patch) | |
| tree | 770a5913c8527928c36486bae19305455e733648 /docs | |
| parent | 6a80e3d4099304ed7327cf2c72f7d786c01344ee (diff) | |
| download | pyramid-0dc26efaddf70c02cac7e84245666340f13abd29.tar.gz pyramid-0dc26efaddf70c02cac7e84245666340f13abd29.tar.bz2 pyramid-0dc26efaddf70c02cac7e84245666340f13abd29.zip | |
- Add ``zcml_configure`` to ``repoze.bfg.testing`` module API. This
function populates a component registry from a ZCML file for testing
purposes.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api/testing.rst | 2 | ||||
| -rw-r--r-- | docs/narr/unittesting.rst | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/docs/api/testing.rst b/docs/api/testing.rst index 94c231459..bf3d68589 100644 --- a/docs/api/testing.rst +++ b/docs/api/testing.rst @@ -31,6 +31,8 @@ .. autofunction:: cleanUp + .. autofunction:: zcml_configure + .. autoclass:: DummyModel :members: diff --git a/docs/narr/unittesting.rst b/docs/narr/unittesting.rst index 2fba73e34..580ec4ca1 100644 --- a/docs/narr/unittesting.rst +++ b/docs/narr/unittesting.rst @@ -161,8 +161,7 @@ environment. """ testing.setUp() import myapp - import zope.configuration.xmlconfig - zope.configuration.xmlconfig.file('configure.zcml', package=myapp) + testing.zcml_configure('configure.zcml', package=myapp) def tearDown(self): """ Clear out the application registry """ |
