def clear_all_data(self): """ Purges the database of all data """ db.unregister_models() logger.debug("Cleared all data from database") #TODO: You can't register models without passing in options db.register_models(options=None)
def clear_all_data(self): """ Purges the database of all data """ db.unregister_models() logger.debug("Cleared all data from database") opts = self.options db.register_models(options=opts['keystone.backends.sqlalchemy'])