Esempio n. 1
0
File: tests.py Progetto: x4rMa/kifu
 def setUp(self):
     self.config = testing.setUp()
     from sqlalchemy import create_engine
     engine = create_engine('sqlite://')
     from default.models.mymodel import (
         Base,
         MyModel,
     )
     DBSession.configure(bind=engine)
Esempio n. 2
0
File: tests.py Progetto: mazz/kifu
 def setUp(self):
     self.config = testing.setUp()
     from sqlalchemy import create_engine
     engine = create_engine('sqlite://')
     from default.models.mymodel import (
         Base,
         MyModel,
         )
     DBSession.configure(bind=engine)
Esempio n. 3
0
File: tests.py Progetto: x4rMa/kifu
 def setUp(self):
     self.config = testing.setUp()
     from sqlalchemy import create_engine
     engine = create_engine('sqlite://')
     from default.models.mymodel import (
         Base,
         MyModel,
     )
     DBSession.configure(bind=engine)
     Base.metadata.create_all(engine)
     with transaction.manager:
         model = MyModel(name='one', value=55)
         DBSession.add(model)
Esempio n. 4
0
File: tests.py Progetto: mazz/kifu
 def setUp(self):
     self.config = testing.setUp()
     from sqlalchemy import create_engine
     engine = create_engine('sqlite://')
     from default.models.mymodel import (
         Base,
         MyModel,
         )
     DBSession.configure(bind=engine)
     Base.metadata.create_all(engine)
     with transaction.manager:
         model = MyModel(name='one', value=55)
         DBSession.add(model)
Esempio n. 5
0
File: tests.py Progetto: x4rMa/kifu
 def tearDown(self):
     DBSession.remove()
     testing.tearDown()
Esempio n. 6
0
File: tests.py Progetto: mazz/kifu
 def tearDown(self):
     DBSession.remove()
     testing.tearDown()