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