Skip to content

Commit 64ee907

Browse files
committed
fix: adjust association proxy to new relationship handling
1 parent 64e31aa commit 64ee907

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

graphene_sqlalchemy/tests/test_converter.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -666,8 +666,12 @@ class Meta:
666666
True,
667667
mock_resolver,
668668
)
669+
dynamic_field_type = dynamic_field.get_type().type
669670
assert isinstance(dynamic_field, graphene.Dynamic)
670-
assert dynamic_field.get_type().type.of_type == ArticleType
671+
assert isinstance(dynamic_field_type, graphene.NonNull)
672+
assert isinstance(dynamic_field_type.of_type, graphene.List)
673+
assert isinstance(dynamic_field_type.of_type.of_type, graphene.NonNull)
674+
assert dynamic_field_type.of_type.of_type.of_type == ArticleType
671675

672676

673677
def test_should_throw_error_association_proxy_unsupported_target():

0 commit comments

Comments
 (0)