def test_should_raise_if_model_is_invalid():
    with raises(Exception) as excinfo:
        class Character2(SQLAlchemyObjectType):

            class Meta:
                model = 1
    assert 'not a SQLAlchemy model' in str(excinfo.value)
dataset/ETHPy150Open graphql-python/graphene/graphene/contrib/sqlalchemy/tests/test_schema.py/test_should_raise_if_model_is_invalid/original