Andrew,

Running 'manage.py test' will create new tables, but not a new  
database. It can't create a new database, since it doesn't know what  
settings to use for that new database. However, your data stored in  
your database won't get overwritten since you will be using a  
temporary table.

Best,
Will

On Jun 19, 2008, at 7:16 AM, Andrew D. Ball wrote:

>
> Good afternoon.
>
> I thought that unit tests run by 'manage.py test' create
> a test db that is separate from the production database
> by default, prepending 'test_' to the database
> name specified by settings.DATABASE_NAME or using
> settings.TEST_DATABASE_NAME for the name of the
> new database.
>
> I'm using Django 0.96.1, and 'python manage.py test'
> will complain unless the production database
> is created and I've run 'manage.py syncdb'.
>
> Any idea why?
>
> Peace,
> Andrew
> -- 
> ===================================
> Andrew D. Ball
> [EMAIL PROTECTED]
> Software Engineer
> American Research Institute, Inc.
> http://www.americanri.com/
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to