[SOLVED] LinkValidationError when running tests

I have created a test site ‘test_site’. I try to run the tests with ‘bench run-tests’ I get the following error: LinkValidationError: Could not find Parent Item Group: All Item Groups

What could be causing this error?

I have tried to find a solution with no success so far. Could someone point me to a solution.


1 Like

Have you created a test record for Item Group named ‘All Item Groups’ , if not just make sure that a record for ‘All Item Groups’ is present under item group , test_record.json file

Thanks so much @neilLasrado. I had not run the erpnext setup wizard which should have installed some of those fixtures. I’ve done so and the tests run now.

1 Like