On Wed, Jul 2, 2008 at 10:14 PM, Norman Harman <[EMAIL PROTECTED]> wrote:
>
> Test system creates a new test database from scratch every time it is
> run.  manage.py loaddata has NO effect on test.
>
> I could be wrong but I don't believe test runner automatically loads the
> fixture initial_data.xml

You are wrong. initial_data is automatically loaded whenever syncdb is
run; syncdb is used to set up the test database, so all initial_data
will be present in a test database.

However, the rest of your analysis is correct - data manually loaded
with loaddata won't be present in the test database. You need to
either define a fixture in your django.test.TestCase, or call the
loaddata management as part of the test case itself.

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
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