[ZODB-Dev] Snapshotting state with DemoStorage
Stefan H. Holek
stefan at epy.co.at
Wed May 28 06:46:48 EDT 2008
You can base DemoStorage on another storage. This could be simple with
ZTC, haven't tried in a while. See ZopeLite.sandbox() and sandbox.py.
You may be able to get away with minor mods to the base classes, e.g.
overriding the _app() method of Sandboxed/Functional.
Stefan
On 27.05.2008, at 23:22, Martin Aspeli wrote:
> Is it possible to create a fast "snapshot" with DemoStorage e.g. in
> a ZopeTestCase layer, and then have the tear-down after each test
> revert to this state? Doing the full setup (creating a new Plone
> site, populating it) between each test run is prohibitively expensive!
--
Stefan H. Holek
stefan at epy.co.at
More information about the ZODB-Dev
mailing list