[TIP] Mocking a cursor for use with Psycopg2

Chris Withers chris at simplistix.co.uk
Thu Mar 13 17:22:29 PDT 2014


On 13/03/2014 16:29, Alexander Bandukwala wrote:
> I'm trying to mock access to my postgres database using the mock
> framework.

Why mock postgres rather than just using a real postgres db?

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
             - http://www.simplistix.co.uk



More information about the testing-in-python mailing list