Skip to content

Commit 80e3498

Browse files
authored
Fix Test Failure due to #1304
assert bar_graphql_type.interfaces == [foo_graphql_type] failed only on tox, because .interfaces was a tuple instead of a list. Error didn't occur using just pytest. Fixed by explicitly converting both to list.
1 parent c77d87d commit 80e3498

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene/types/tests/test_type_map.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,4 +318,4 @@ class Meta:
318318
assert isinstance(fields["foo"], GraphQLField)
319319
assert isinstance(fields["bar"], GraphQLField)
320320

321-
assert bar_graphql_type.interfaces == [foo_graphql_type]
321+
assert list(bar_graphql_type.interfaces) == list([foo_graphql_type])

0 commit comments

Comments
 (0)