Re: [ZODB-Dev] DemoStorage stacking in zope.testing layers

2010-04-05 Thread Marius Gedminas
On Mon, Apr 05, 2010 at 10:36:49PM +0800, Martin Aspeli wrote: > I'm trying to do something like the following: > > - A test layer "EmptyZODB" sets up an empty ZODB using DemoStorage and > exposes the DB object to other layers and tests. > > - A test layer "Foo" has "EmptyZODB" as a base. It

Re: [ZODB-Dev] DemoStorage stacking in zope.testing layers

2010-04-05 Thread Hanno Schlichting
Hi. On Mon, Apr 5, 2010 at 4:36 PM, Martin Aspeli wrote: > What is the correct way to use DemoStorage stacking in test layers? Not sure if this helps, but zope.app.testing's functional.py [1] did something similar here (stacking DemoStorages). Maybe the FunctionalTestSetup class including the wa

[ZODB-Dev] DemoStorage stacking in zope.testing layers

2010-04-05 Thread Martin Aspeli
Hi, I'm trying to do something like the following: - A test layer "EmptyZODB" sets up an empty ZODB using DemoStorage and exposes the DB object to other layers and tests. - A test layer "Foo" has "EmptyZODB" as a base. It opens a connection during layer setup, makes some changes, commits t