def setup(self): # inherited setup does reset_db() super(DguFunctionalTestBase, self).setup() # init DGU-specific models commitment.init_tables(model.meta.engine) archiver.init_tables(model.meta.engine) schema_model.init_tables(model.meta.engine)
def init(self): import ckan.model as model model.Session.remove() model.Session.configure(bind=model.meta.engine) self.log.info("Database access initialised") import ckanext.dgu.model.schema_codelist as s_model s_model.init_tables(model.meta.engine) self.log.debug("Schema/codelist tables are setup")
def setup_class(self): import ckanext.dgu.model.schema_codelist as s_model s_model.init_tables(model.meta.engine) super(DguFunctionalTestBase, self).setup_class()