Python and database unittests

Daniel daniel.watrous at gmail.com
Tue Aug 26 17:35:20 EDT 2008


Hello,

I'm writing an application that interacts with a database.  As I think
about how to write the unittests, I want them to be able to run
without actually having to access a live database.  The pattern that
best describes this is here:

http://martinfowler.com/eaaCatalog/serviceStub.html

I have found http://qualitylabs.org/pdbseed/, which helps with
unittests for a live database.  This isn't what I'm after.

Does anyone know about a module that acts as a database stub for
python unittests?

Thanks,
Daniel



More information about the Python-list mailing list