def tearDownClass(cls): db.session.rollback() for user in [user for user in User.query.all() if user.username != 'admin']: db.session.delete(user) for message in MessageHistory.query.all(): db.session.delete(message) execution_db_help.tear_down_execution_db()
def tearDownClass(cls): db.session.rollback() for user in [user for user in User.query.all() if user.username != 'admin']: db.session.delete(user) for role in [role for role in Role.query.all() if role.name != 'admin']: db.session.delete(role) db.session.commit() execution_db_help.tear_down_execution_db()
def tearDownClass(cls): db.session.rollback() for user in [ user for user in User.query.all() if user.username != 'admin' ]: db.session.delete(user) for message in MessageHistory.query.all(): db.session.delete(message) execution_db_help.tear_down_execution_db()
def tearDownClass(cls): if walkoff.config.Config.DATA_PATH in os.listdir( walkoff.config.Config.TEST_PATH): if os.path.isfile(walkoff.config.Config.DATA_PATH): os.remove(walkoff.config.Config.DATA_PATH) else: shutil.rmtree(walkoff.config.Config.DATA_PATH) walkoff.appgateway.clear_cache() cls.app.running_context.executor.shutdown_pool() execution_db_help.tear_down_execution_db()
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 tearDownClass(cls): if walkoff.config.Config.DATA_PATH in os.listdir(walkoff.config.Config.TEST_PATH): if os.path.isfile(walkoff.config.Config.DATA_PATH): os.remove(walkoff.config.Config.DATA_PATH) else: shutil.rmtree(walkoff.config.Config.DATA_PATH) for class_ in (Case, Event): for instance in cls.app.running_context.case_db.session.query(class_).all(): cls.app.running_context.case_db.session.delete(instance) cls.app.running_context.case_db.session.commit() walkoff.appgateway.clear_cache() cls.app.running_context.executor.shutdown_pool() execution_db_help.tear_down_execution_db()
def tearDownClass(cls): execution_db_help.tear_down_execution_db()
def tearDownClass(cls): execution_db_help.tear_down_execution_db()
def tearDownClass(cls): execution_db_help.tear_down_execution_db() walkoff.appgateway.clear_cache()
def tearDownClass(cls): execution_db_help.tear_down_execution_db() walkoff.appgateway.clear_cache()
def tearDownClass(cls): walkoff.appgateway.clear_cache() cls.executor.shutdown_pool() execution_db_help.tear_down_execution_db()
def tearDownClass(cls): dispatcher._clear() walkoff.config.app_apis = {} walkoff.executiondb.schemas._schema_lookup.pop(MockWorkflow, None) execution_db_help.tear_down_execution_db()
def tearDown(self): execution_db_help.cleanup_execution_db() execution_db_help.tear_down_execution_db()
def tearDown(self): execution_db_help.cleanup_execution_db() execution_db_help.tear_down_execution_db()
def tearDownClass(cls): dispatcher._clear() walkoff.config.app_apis = {} walkoff.executiondb.schemas._schema_lookup.pop(MockWorkflow, None) execution_db_help.tear_down_execution_db()