def METHOD_NAME(self):
    my_calc_dir = os.path.join(module_dir, "..", "..", "test_files","parse_grad_bad")
    ft = QChemToDb(calc_dir=my_calc_dir, parse_grad_file=True)
    ft.run_task({})
    task_doc = loadfn(os.path.join(my_calc_dir,"task.json"))
    self.assertEqual(task_doc["warnings"]["grad_file_missing"], True)
    os.remove(os.path.join(my_calc_dir, "task.json"))