January 26th, 2009
A little while ago I wrote a post about getting Django unittests to work on DreamHost. The particular problem with the DreamHost setup is that they don’t allow you to programmatically create and drop databases and the default Django unittest behaviour is to do just that: create a brand new test db, use it and [...]
Posted in Programming, VendAsta | 5 Comments »
Tags: django, Programming, Projects, VendAsta
[ Back to top ]
December 27th, 2008
The default test behaviour for a Django site creates and then destroys a whole test database on each test run. Normally this is not a problem, but the way Dreamhost has their MySQL setup running, the commands to create and drop databases are not available outside of their administration panel. What follows is the solution I have come up with and am currently using to run Django unittests with my Dreamhost MySQL databases.
Posted in Programming, Tutorials | 2 Comments »
Tags: django, dreamhost, Programming, testing
[ Back to top ]