def test_missing_node_data_json_error(self):
        nodes = chef._load_data("nodes")  # Load before mocking
        with patch.object(json, 'loads') as mock_method:
            mock_method.side_effect = json.decoder.JSONDecodeError(
                "JSON syntax error", "", 10)
            self.assertRaises(chef.RepoError, chef._load_extended_node_data,
                              nodes)
Should raise RepoError when there is a JSON error
dataset/ETHPy150Open edelight/kitchen/kitchen/backends/tests.py/TestRepo.test_missing_node_data_json_error