def setUp(self): super(SaharaWithDbTestCase, self).setUp() self.override_config('connection', "sqlite://", group='database') db_api.setup_db() self.addCleanup(db_api.drop_db)
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)
def setup_db(**kwargs): db_api.setup_db()
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)