You can check my dump of manage.py test (ran as root) here;
http://dpaste.com/60433/

As you can see the fixture load runs OK... and I even got a couple of
errors on the load process! That sure confirms the fixtures load ;-)
Tests run fine though.

On Jul 2, 4:14 pm, "Norman Harman" <[EMAIL PROTECTED]> wrote:
> laspal wrote:
> > Hi,
> > I have  created initial_data.xml using dumpdata and
> > """manage.py loaddata initial_data.xml""" gives me no error.
> > but still  I am not able to login using setUp().. and this is
> > essential  as all my views functions required login..
>
> > here is my test file:
>
> > import unittest
>
> > from django.test import TestCase
>
> > class IndustryTest(TestCase):
>
> >     def setUp(self):
> >         self.client = Client()
> >         response =self.client.post('/ibms/login/',
> > {'username':'laspal', 'passwords':'abcd'})
> >         print response
>
> > I am still getting the error."""Your username and password didn't
> > match"""
> > Please help me out as I have to write lots of test cases for my view
> > functions.
>
> 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 need to tell it what fixtures to load and you need to put them in
> the correct place.
>
> http://www.djangoproject.com/documentation/testing/#fixture-loading
>
> --
> Norman J. Harman Jr.
> Senior Web Specialist, Austin American-Statesman
> ___________________________________________________________________________
> You've got fun!  Check out Austin360.com for all the entertainment
> info you need to live it up in the big city!
--~--~---------~--~----~------------~-------~--~----~
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