Exemplo n.º 1
0
 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()
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
def fake_db():
    store_factory = store.StoreFactory(
        sqla.create_engine("sqlite:///:memory:", echo=False))
    db = store_factory.create()
    populate_store_fake(db)
    return db