Пример #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")
Пример #4
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()
Пример #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()