[Zope-Coders] Testing from an INSTANCE_HOME
Chris Withers
chrisw@nipltd.com
Sat, 07 Jun 2003 15:37:21 +0100
Shane Hathaway wrote:
> What if we just decided that unit tests should not use Zope.app() to
> open a database, but rather a new function called Testing.app()?
> Testing.app() would return a clean database that unit tests are free to
> change. If all unit tests that use Zope.app() start using Testing.app()
> instead, we won't need the custom_zodb.py hack and the Testing package
> can leave INSTANCE_HOME alone.
I think this is a fantastic idea :-)
Test that want to be INSTANCE_HOME testable can use Testing.app(), those that
don't care or want to maintain backward compatability can do what they're doing
now...
cheers,
Chris