def setUp(self): store_factory = store.StoreFactory( sqla.create_engine("sqlite:///:memory:", echo=True) ) self.db = store_factory.create() self.sync = synchronizer.StoreSynchronizer(self.db) self.sync.prepare()
def setUp(self): store_factory = store.StoreFactory( sqla.create_engine("sqlite:///:memory:", echo=True) ) self.db = store_factory.create() self.csv = synchronizer.CSVSynchcronizer(self.db)
def fake_db(): store_factory = store.StoreFactory( sqla.create_engine("sqlite:///:memory:", echo=False)) db = store_factory.create() populate_store_fake(db) return db