mocking DB API

Peter Eisentraut <[email protected]>
Newsgroups gmane.comp.python.db
Message-ID <[email protected]>
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.
_______________________________________________
DB-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/db-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.