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)
评论列表
文章目录