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.
This commit is contained in:
Erik Wrede 2022-08-13 14:51:58 +02:00 committed by GitHub
parent c77d87d205
commit 80e3498750
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -318,4 +318,4 @@ def test_interface_with_interfaces():
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])