hi I have a 'sample.json' that has some data I use for unittesting my app.I have put it in fixtures folder of myapp alongside 'initial_data.json'.In my TestCase subclass,I put it as,
class MyTC(TestCase): fixtures=['sample.json'] def setUp(self): ... However,when I run the unittest ,only the data in 'initial_data.json' gets installed. I tried from the command line python manage.py loaddata sample.json and the data gets installed.But ,I need the unittest to install it in the testdb..,not manually in the main db. Can someone tell me why this is happening? thanks jim -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.