Loading SQL dump before running Django tests

Posted by knutin on Stack Overflow See other posts from Stack Overflow or by knutin
Published on 2009-12-30T11:27:58Z Indexed on 2010/04/07 1:43 UTC
Read the original article Hit count: 400

Filed under:
|
|

I have a fairly complex Django project which makes it hard/impossible to use fixtures for loading data.

What I would like to do is to load a database dump from the production database server after all tables has bene created by the testrunner and before the actual tests start running.

I've tried various "magic" in MyTestCase.setUp(), but with no luck.

Any suggestions would be most welcome. Thanks.

© Stack Overflow or respective owner

Related posts about python

Related posts about django