test_attrs.py 文件源码

python
阅读 14 收藏 0 点赞 0 评论 0

项目:jsonschema-extractor 作者: toumorokoshi 项目源码 文件源码
def test_unextractable_schema(extractor):
    """ test an attrs class which we can't extract schema from. """
    @attr.s
    class NoBueno(object):
        foo = attr.ib()
    with pytest.raises(UnextractableSchema):
        extractor.extract(NoBueno)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号