Good point about SQLite. I considered SQLite, but went with hacking
the test code in the end. My production environment uses MySql, so my
test environment should as well.
For example, I just uncovered a bug in my code that has to do with
database interactions. This bug may or may not show up when I test
against another database than MySql.
/Martin
On Dec 8, 6:21 pm, rebus_ <
r.dav...@gmail.com> wrote:
> 2009/12/9 Martin Omander <
martin.oman...@gmail.com>:
>
>
>
> > Hi all,
>
> > How about letting Django users run unit tests without creating a new
> > test database?
>
> > To use Django's built-in unit test harness, you have to have database
> > creation privileges. Not all web hosts give users those privileges.
> > For example, Webfaction, an excellent commercial Django host by all
> > accounts (
http://djangohosting.org), doesn't. This means there are
> > Django users out there who can't run unit tests.
>
> > See here for an examplehttp://
forum.webfaction.com/viewtopic.php?pid=13266