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
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)
def tables(): "Create database tables." m.create_tables(app)