Re: Re: name of test database

2006-09-04 Thread Russell Keith-Magee
On 9/4/06, Matthew Flanagan <[EMAIL PROTECTED]> wrote: and use ./manage.py --settings=myapp.testsettings.I briefly considered this approach when the TEST_DATABASE_NAME suggestion came up. However, I was concered about the possibility for accidentally nuking your production database. If you ever for

Re: name of test database

2006-09-04 Thread Michael Radziej
Russell Keith-Magee wrote: > On 9/4/06, Ned Batchelder <[EMAIL PROTECTED]> wrote: >> Partly on this topic: I would very much like to use sqlite in-memory >> databases for testing, even though I use MySQL for deployment. The speed >> difference is 10x. One way to do this is to have a TEST_DATAB

Re: name of test database

2006-09-04 Thread Ned Batchelder
Matthew Flanagan wrote: On 04/09/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: On 9/4/06, Ned Batchelder <[EMAIL PROTECTED]> wrote: Partly on this topic: I would very much like to use sqlite in-memory databases for testing, even though I use

Re: Re: name of test database

2006-09-03 Thread Matthew Flanagan
On 04/09/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > > On 9/4/06, Ned Batchelder <[EMAIL PROTECTED]> wrote: > > > > > > Partly on this topic: I would very much like to use sqlite in-memory > databases for testing, even though I use MySQL for deployment. The speed > difference is 10x.

Re: name of test database

2006-09-03 Thread Ned Batchelder
Russell Keith-Magee wrote: On 9/4/06, Ned Batchelder <[EMAIL PROTECTED]> wrote: Partly on this topic:  I would very much like to use sqlite in-memory databases for testing, even though I use MySQL for deployment.  The speed difference is 10x.  One way to do this is to have a TEST

Re: name of test database

2006-09-03 Thread Russell Keith-Magee
On 9/4/06, Ned Batchelder <[EMAIL PROTECTED]> wrote: Partly on this topic:  I would very much like to use sqlite in-memory databases for testing, even though I use MySQL for deployment.  The speed difference is 10x.  One way to do this is to have a TEST_DATABASE_ENGINE setting, and add logi

Re: name of test database

2006-09-03 Thread Ned Batchelder
Partly on this topic:  I would very much like to use sqlite in-memory databases for testing, even though I use MySQL for deployment.  The speed difference is 10x.  One way to do this is to have a TEST_DATABASE_ENGINE setting, and add logic to create_test_db(). Thoughts? --Ned. Adrian Holovat

Re: name of test database

2006-09-01 Thread Adrian Holovaty
On 9/1/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > In Michael's case, it sounds like test_myapplication would never be a viable > database name (due to some name clash). Given that he knows this, and it > will be a persistent condition, asking him to type './manage.py > --test_db_name="no

Re: name of test database

2006-09-01 Thread Russell Keith-Magee
On 9/1/06, Adrian Holovaty <[EMAIL PROTECTED] > wrote: Any particular reason you used a setting instead of a simplecommand-line parameter? In my view, we should only be adding settingsif absolutely necessary.I agree that a command line argument would probably be viable if the problem was restricted

Re: name of test database

2006-09-01 Thread Adrian Holovaty
On 9/1/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > These are reasonable concerns. I have just committed (r3706) a > TEST_DATABASE_NAME setting; by default, this has a value of None, which will > cause the test database to use the same 'test_' + DATABASE_NAME scheme; > however, if you prov

Re: name of test database

2006-09-01 Thread Russell Keith-Magee
On 9/1/06, Michael Radziej <[EMAIL PROTECTED]> wrote: I can work around this, sure, but I'd propose to allow tooverwrite the default test database name for the test suite somehow, preferably on the command line of runtests.py.Thanks for the feedback. These are reasonable concerns. I have just commi

name of test database

2006-08-31 Thread Michael Radziej
Hi, I'm checking out the changes from the last three weeks in svn ... seems like the test suite is a little bit different now ;-) I can't say much about it now other than I appreciate all the hard work by Russell, and that there's a nice test framework in place now. Only ... I find the naming o