﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
32756	Inconsistent TestCase results with fixtures	Alexandr Bezenkov	nobody	"I've created a TestCase for one of my apps which uses fixtures:

{{{
from django.test.testcases import TestCase

class EmployeesTestCase(TestCase):
    fixtures = [
        'capps/accounts/fixtures/tests',
        'capps/locations/fixtures/tests',
        'capps/companies/fixtures/tests',
        'employees/fixtures/tests',
    ]
...
}}}
Everything is fine except one thing: sometimes testcase fails with error **json.decoder.JSONDecodeError: Problem installing fixture**.
Here's the link to the video demonstrating the issue https://youtu.be/GqMarU0_XW0
Tried with both Django 3.2.2 and 3.2.3, with python 3.8.9 and 3.9.5, with PostgreSQL 13 and SQLite 3.
All fixtures were created by {{{python manage.py dumpdata }}}.
This is the case for all apps in my project, it either loads data, or fails to do so without any change from my side. 
Can someone please explain what kind of black magic is this?"	Uncategorized	closed	Testing framework	3.2	Normal	invalid			Unreviewed	0	0	0	0	0	0
