示例#1
0
    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)
示例#2
0
    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")
示例#3
0
    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()
示例#5
0
 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()