Skip to content

Commit

Permalink
Fix Test Failure due to #1304
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
erikwrede committed Aug 13, 2022
1 parent c77d87d commit 80e3498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphene/types/tests/test_type_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,4 +318,4 @@ class Meta:
assert isinstance(fields["foo"], GraphQLField)
assert isinstance(fields["bar"], GraphQLField)

assert bar_graphql_type.interfaces == [foo_graphql_type]
assert list(bar_graphql_type.interfaces) == list([foo_graphql_type])

0 comments on commit 80e3498

Please sign in to comment.