Пример #1
0
def install(app, *args):
    engine = m.create_tables(app)
    db = SQLAlchemyFixture(env=m, style=NamedDataStyle(), engine=engine)
    data = db.data(*args)
    data.setup()
    db.dispose()
    return data
Пример #2
0
 def setUpClass(cls):
     cls.db.drop_all()
     cls.client = cls.app.test_client()
     m.create_tables(cls.app)
     cls.fixture_data = fixtures.install(cls.app, *fixtures.all_data)
Пример #3
0
def tables():
    "Create database tables."
    m.create_tables(app)