On Sun, Jan 07, 2007 at 12:14:32PM +0100, Philipp von Weitershausen wrote:
> So, there are two options:
> - modify the setUp() of the tests in question to 
> provideUtility(your_utility)
> - make the respective tests run in a layer that loads the ZCML. I don't 
> think layer support is on the trunk yet. Whit Morriss has a branch where 
> he added that to Zope 2, but it still hasn't been merged :(

The testrunner in zope 2 has supported layers for quite a while.  
I currently use layers in my tests with zope 2.9.1.  
TestLayersHowTo on zopewiki.org gives a working example.

Or do you mean something else by "layer support"?

-- 

Paul Winkler
_______________________________________________
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )

Reply via email to