

@raises(Exception)
def test_no_pk():
    (app, db, admin) = setup()

    class Model(db.Model):
        test = db.Column(db.Integer)
    view = CustomModelView(Model)
    admin.add_view(view)

dataset/ETHPy150Open flask-admin/flask-admin/flask_admin/tests/sqla/test_basic.py test_no_pk/original