[DB-SIG] mocking DB API

Peter Eisentraut peter_e at gmx.net
Mon Nov 26 21:31:26 CET 2012

Is there some kind of ready-to-use way to mock an entire DB-API driver,
for use in a unit test suite?  The popular "mock" module can only mock
classes and methods, but not modules, as would be required here.

As a target to aim for, I'd be interested to see after a test a list or
count of the execute calls that were made.

More information about the DB-SIG mailing list