Beispiel #1
0
    def setUp(self):
        super(SaharaWithDbTestCase, self).setUp()

        self.override_config('connection', "sqlite://", group='database')
        db_api.setup_db()
        self.addCleanup(db_api.drop_db)
Beispiel #2
0
    def setUp(self):
        super(SaharaWithDbTestCase, self).setUp()

        self.override_config('connection', "sqlite://", group='database')
        db_api.setup_db()
        self.addCleanup(db_api.drop_db)
Beispiel #3
0
 def setup_db(self):
     self.db_fd, self.db_path = tempfile.mkstemp()
     session.set_defaults('sqlite:///' + self.db_path, self.db_path)
     db_api.setup_db()
     self.addCleanup(self._drop_db)
Beispiel #4
0
def setup_db(**kwargs):
    db_api.setup_db()
Beispiel #5
0
def setup_db(**kwargs):
    db_api.setup_db()
Beispiel #6
0
 def setup_db(self):
     self.db_fd, self.db_path = tempfile.mkstemp()
     session.set_defaults("sqlite:///" + self.db_path, self.db_path)
     db_api.setup_db()
     self.addCleanup(self._drop_db)