test_converter.py 文件源码

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

项目:graphql-pynamodb 作者: yfilali 项目源码 文件源码
def test_should_onetomany_convert_nonnode_field():
    class A(PynamoObjectType):
        class Meta:
            model = Article

    dynamic_field = convert_pynamo_attribute(Reporter.articles, Reporter.articles, A._meta.registry)
    assert isinstance(dynamic_field, Dynamic)
    graphene_type = dynamic_field.get_type()
    assert isinstance(graphene_type, graphene.Field)
    assert graphene_type.type == graphene.List(A)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号