[Zope3-dev] testInitDB fails

Gary Poster gary@modernsongs.com
Thu, 12 Dec 2002 10:04:31 -0500


The ones in CA and Events are important because of the separate tests 
there, isolated from Zope.App.

Similarly, the one in App.CA.tests is specific for the tests there.

But if you are asking about imports outside of these specific packages, 
then yes, you probably should only use Zope.App.tests.PlacelessSetup, or 
one of the various PlacefulSetups available currently in 
App.OFS.Services.XXX.tests.PlacefulSetup.py.

Unless this is refactored, anyway. :-)

Gary

Marius Gedminas wrote:
> On Thu, Dec 12, 2002 at 08:21:43AM +0000, Steve Alexander wrote:
> 
>>Also, if the test is setting up things to do with global adapter 
>>registries, the test class needs to derive from PlacelessSetup.
> 
> 
> PlacelessSetup is defined in the following modules
> 
>   Zope.App.ComponentArchitecture.tests.PlacelessSetup
>   Zope.ComponentArchitecture.tests.PlacelessSetup
>   Zope.Event.tests.PlacelessSetup
>   Zope.App.tests.PlacelessSetup (inherits from the previous three)
> 
> Is there ever any reason to use a different PlacelessSetup from the one
> in App.tests?
> 
> Marius Gedminas