def setUp(self): self.db_path = "%s.db" % os.path.join(TMP_DBPATH, str(uuid.uuid4())) db_url = "sqlite:///%s" % self.db_path self.engine = create_engine(db_url, echo=False) meta.Session = meta.session_factory(self.engine) meta.Base.metadata.create_all(self.engine) self.db_url = db_url
def setUp(self): """db setup""" self.engine = create_engine(meta.db_url, echo=True) meta.Session = meta.session_factory(self.engine) # scheduler.DBSession.configure(bind=self.engine) meta.Base.metadata.create_all(self.engine)