def create(default_data=True, sample_data=False): """ Creates database tables from sqlalchemy models """ from flask.ext.migrate import stamp db.create_all() stamp()
def pytest_runtest_setup(): _app = app() with _app.test_request_context(): db.create_all()