Skip to content

Commit 8f95696

Browse files
committed
update test
1 parent ae3ce29 commit 8f95696

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphene_sqlalchemy/tests/test_converter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,8 @@ class Meta:
302302
assert isinstance(dynamic_field, graphene.Dynamic)
303303
graphene_type = dynamic_field.get_type()
304304
assert isinstance(graphene_type, graphene.Field)
305-
assert graphene_type.type == graphene.String
305+
assert isinstance(graphene_type.type, graphene.List)
306+
assert graphene_type.type.of_type == graphene.String
306307

307308
dynamic_field = convert_sqlalchemy_association_proxy(
308309
Article.reporter_pets,
@@ -312,7 +313,6 @@ class Meta:
312313
True,
313314
mock_resolver,
314315
)
315-
assert isinstance(dynamic_field.get_type().type, graphene.List)
316316
assert dynamic_field.get_type().type.of_type == P
317317

318318

0 commit comments

Comments
 (0)