[z3-five] testings event firing

Chris Withers chris at simplistix.co.uk
Thu Feb 8 09:33:37 CET 2007


Philipp von Weitershausen wrote:
> Sure, or simply use an already existing setup from 
> zope.component.eventtesting.

...which is only available in 2.10 ;-)

> In a functional test, you load the ZCML once for a whole bunch of tests 
> and then execute all your tests within that setup. 

What's the canonical way to load all the zcml that Zope normally does?

> shouldn't really modify the registries then. The common way to do this 
> is to use zope.testing's test layer support. You put those tests that 
> require common setup routines that may take long to load (e.g. booting 
> up all of the ZCML you have) into one layer and let the layer do that 
> setup (and tear down). zope.testing has some doctests on layers.

Yup, I've read all those I could find, but I'm still left wondering how 
to fire up all the ZCML ;-)

cheers,

Chris

-- 
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk



More information about the z3-five mailing list