Re: Problem with loading fixture in testcase

2009-05-29 Thread Russell Keith-Magee
On Fri, May 29, 2009 at 4:57 PM, motard wrote: > > This does indeed seem to have relation with the contents of what is > being dumped to JSON. > > My experience is that simply dumping the data of a db will result in a > file that will not be loadable "as is". ... > So I'm not sure whether it make

Re: Problem with loading fixture in testcase

2009-05-29 Thread motard
This does indeed seem to have relation with the contents of what is being dumped to JSON. My experience is that simply dumping the data of a db will result in a file that will not be loadable "as is". I understand that this doesn't mean that there is a problem with that functionality. When purg

Re: Problem with loading fixture in testcase

2009-05-24 Thread Russell Keith-Magee
On Sat, May 23, 2009 at 12:59 AM, Stefan Tunsch wrote: > > Hi! > > I have a fixture in json format, which I want to start using together > with my test cases. > > I have deleted the data I didn't want from my development database and > have dumped the data with the following command: > manage.py

Problem with loading fixture in testcase

2009-05-22 Thread Stefan Tunsch
Hi! I have a fixture in json format, which I want to start using together with my test cases. I have deleted the data I didn't want from my development database and have dumped the data with the following command: manage.py dumpdata --exclude=contenttypes > myapp/fixtures/inicial.json I can a