def tearDown(self): execution_db_help.cleanup_execution_db() self.app.running_context.case_db.session.query(case_database.Event).delete() self.app.running_context.case_db.session.query(case_database.Case).delete() self.app.running_context.case_db.session.commit() walkoff.executiondb.schemas._schema_lookup.pop(MockWorkflow, None)
def tearDown(self): execution_db_help.cleanup_execution_db() self.app.running_context.case_db.session.query( case_database.Event).delete() self.app.running_context.case_db.session.query( case_database.Case).delete() self.app.running_context.case_db.session.commit()
def tearDown(self): execution_db_help.cleanup_execution_db() for data_file in os.listdir(self.conf.DATA_PATH): try: os.remove(os.path.join(self.conf.DATA_PATH, data_file)) except WindowsError: # Windows sometimes makes files read only when created os.chmod(os.path.join(self.conf.DATA_PATH, data_file), stat.S_IWRITE) os.remove(os.path.join(self.conf.DATA_PATH, data_file))
def tearDownClass(cls): if cls.conf.DATA_PATH in os.listdir(cls.conf.TEST_PATH): if os.path.isfile(cls.conf.DATA_PATH): os.remove(cls.conf.DATA_PATH) else: shutil.rmtree(cls.conf.DATA_PATH) cls.app.running_context.executor.shutdown_pool() execution_db_help.cleanup_execution_db() execution_db_help.tear_down_execution_db() walkoff.appgateway.clear_cache()
def tearDown(self): execution_db_help.cleanup_execution_db() walkoff.executiondb.schemas._schema_lookup.pop(MockWorkflow, None)
def tearDown(self): execution_db_help.cleanup_execution_db()
def tearDown(self): execution_db_help.cleanup_execution_db() reload(socket)