I am facing some issues while fixtures loading while running testcases. The error is
app_name.models.company.CompanyModel.DoesNotExist: Problem installing fixture '/Users/xyz/Documents/temp/testdir/random/fixtures/product.json': XYZModel matching query does not exist.
1. Earlier, there was no issue while loading fixtures.
2. Testcases were running fine.
3. Not all testcases are breaking.
4. Only some testcases are throwing this error.
5. Fixture of XYZModel is valid and tried and tested by using the loaddata command.
6. FK of XYZModel instance in product.json is also valid.
Stuck with this problem last few hours.
Any help or suggestions would be appreciated.
Thanks
Jatin Agrawal