From 0dc26efaddf70c02cac7e84245666340f13abd29 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Fri, 16 Oct 2009 00:47:13 +0000 Subject: - Add ``zcml_configure`` to ``repoze.bfg.testing`` module API. This function populates a component registry from a ZCML file for testing purposes. --- repoze/bfg/testing.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'repoze/bfg/testing.py') diff --git a/repoze/bfg/testing.py b/repoze/bfg/testing.py index 60a52aa66..50f19cbf7 100644 --- a/repoze/bfg/testing.py +++ b/repoze/bfg/testing.py @@ -8,6 +8,7 @@ from zope.interface import Interface from repoze.bfg.interfaces import IRequest +from repoze.bfg.configuration import zcml_configure # API import alias from repoze.bfg.registry import Registry _marker = object() @@ -457,6 +458,7 @@ class DummyRequest: self.root = None self.virtual_root = None self.marshalled = params # repoze.monty + self.registry = getSiteManager() self.__dict__.update(kw) def setUp(): -- cgit v1.2.3