[PATCH]: default settings for unit tests

1 view
Skip to first unread message

Waldemar Kornewald

unread,
Feb 12, 2008, 8:47:56 AM2/12/08
to django-d...@googlegroups.com
Hi,
when I tried to run Django's unit tests I faced a little problem: it
wanted me to create a settings file. Why don't you provide a fallback
test configuration with sqlite3 (if that exists)? That would make
testing patches a lot easier. My patch is attached.

Regards,
Waldemar Kornewald

tests.diff

David Cramer

unread,
Feb 12, 2008, 11:56:08 AM2/12/08
to Django developers
Why don't they provide settings for MySQL, PostgreSQL, Oracle, MSSQL,
etc?

On Feb 12, 5:47 am, "Waldemar Kornewald" <wkornew...@freenet.de>
wrote:
> tests.diff
> 1KDownload

alex....@gmail.com

unread,
Feb 12, 2008, 3:21:19 PM2/12/08
to Django developers
Well the reason to use SQLite is that python includes bindings for it,
and you don't have to pick a user with appropriate permissions. Just
sayin'

Russell Keith-Magee

unread,
Feb 12, 2008, 9:53:56 PM2/12/08
to django-d...@googlegroups.com

This has been proposed and rejected previously, for a very specific
reason: SQLite is only one of the databases that Django supports.
Setting up the test configuration files is not difficult, and is a
documented process. Requiring developers to manually set up a
configuration file for a specific database is one way to reinforce the
fact that ensuring cross-database compatibility is an important part
of the patch development process, and that there isn't a 'default
database'.

Yours,
Russ Magee %-)

Russell Keith-Magee

unread,
Feb 12, 2008, 9:55:57 PM2/12/08
to django-d...@googlegroups.com
On Feb 13, 2008 1:56 AM, David Cramer <dcr...@gmail.com> wrote:
>
> Why don't they provide settings for MySQL, PostgreSQL, Oracle, MSSQL,
> etc?

If you think about what goes in a MySQL/PostgreSQL/Oracle settings
file, the answer will be obvious.

Yours,
Russ Magee %-)

Mike Scott

unread,
Feb 13, 2008, 3:20:36 AM2/13/08
to django-d...@googlegroups.com
Further to this I'd like to point out that SQL lite is a very limited database in respect to the other offerings.

Encouraging such a practice, in my opinion, is a really bad idea.

Just my 2c.



Mike
Reply all
Reply to author
Forward
0 new messages