[Zope-DB] New Zope Database Adapter Test Suite available

Chris Withers chrisw at nipltd.com
Fri Oct 31 13:06:18 EST 2003


Hi All,

I've just finished writing a test suite for Zope DA's in general, based on what 
I saw in Shared.DC.ZRDB.Connection and Shared.DC.ZRDB.DA.

This is available from:
http://cvs.zope.org/*checkout*/Products/DCOracle2/test/test_zopeda.py

An example of how to use it (for ZOracleDA in this case) is available from:
http://cvs.zope.org/*checkout*/Products/DCOracle2/test/test_zoracleda_basics.py

There are instructions for running it at the bottom of:
http://cvs.zope.org/*checkout*/Products/DCOracle2/README

I'd be very interested if users of the other database adapters could see how 
this does against their products. If anyone wants help to do this, please mail 
me off list.

If this proves useful, I'd like to check it into the core Zope CVS, what do 
other people think?

I do have some questions, though. DA's return a Shared.DC.ZRDB.TM subclass when 
they are called, this has lots of transaction-ish methods. I currently check 
that these are there, but does anyone know how I could check that they do what 
they're supposed to?

Also, if anyone can see any methods on any objects that I'm not currently 
testing, but that should be tested, please let me know!

cheers,

Chris




More information about the Zope-DB mailing list