

def test_model_default():
    (app, db, admin) = setup()
    (_, Model2) = create_models(db)

    class ModelView(CustomModelView):
        pass
    view = ModelView(Model2, db.session)
    admin.add_view(view)
    client = app.test_client()
    rv = db.post('/admin/model2/new/', data=dict())
    assert_true((b'This field is required' not in rv.data))

dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/tests/sqla/test_basic.py test_model_default/VarMisuse@72/85 `client`->`db`