dreamwidth/dw-free — pull request #931 by afuna (2014-08-11 15:03:45+00:00)
Title: Idea: move the test database to be separate from a hack's DB

We have too many tests touching the database to be able to realistically
run a test without a database -- but we could at least separate them
from actual data in the 'hack.

The other really nice thing about this is that you can drop the test
databases and start from scratch at any time -- just in case you start
getting bad results because of old data (which was happening to me; I'd
deleted a bunch of users on my dev environment but still had their
entries lying around, so tests would intermittently fail for no reason
at all...)

Not ready for deploy. In particular, there will probably need to be
tweaks before this will be usable on an actual dreamhack server since
not everyone should have the same test db credentials.

Also I'm not happy with how I figure out whether I'm in testing or not
(eeeh), but what do you all think?