Python and database unittests

alex23 wuwei23 at gmail.com
Wed Aug 27 04:55:45 CEST 2008


Daniel <daniel.watr... at gmail.com> wrote:
> Does anyone know about a module that acts as a database stub for
> python unittests?

It's not database-specific, but the Mock module should help you here:

http://python-mock.sourceforge.net/

There's even an example on that page for mocking a database.



More information about the Python-list mailing list