def db(app, request): """Session-wide test database.""" _db.drop_all() _db.create_all() return _db
def setUp(self): db.create_all()
def init_db(): db.create_all()
#!/usr/bin/env python from example import app, db db.create_all() app.run(debug=True, port=5001)