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 also load this data to a fresh database, doing first a syncdb and then a loaddata command. But when I run my testcase, I get the following error: .Problem installing fixture 'inicial.json': Traceback (most recent call last): File "C:\django-trunk\django\core\management\commands\loaddata.py", line 150, in handle for obj in objects: File "C:\django-trunk\django\core\serializers\json.py", line 41, in Deserializ er for obj in PythonDeserializer(simplejson.load(stream)): File "C:\django-trunk\django\utils\simplejson\__init__.py", line 298, in load parse_constant=parse_constant, **kw) File "C:\django-trunk\django\utils\simplejson\__init__.py", line 338, in loads return _default_decoder.decode(s) File "C:\django-trunk\django\utils\simplejson\decoder.py", line 326, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\django-trunk\django\utils\simplejson\decoder.py", line 344, in raw_de code raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded The data seems to be loaded correctly to the test database, at least to some extent. How can I track down the error? Or can it be a bug in the deserializer code... Regards, Stefan Tunsch --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---