diff --git a/graphql/pyutils/contain_subset.py b/graphql/pyutils/contain_subset.py index 3f790fb2..2e07ef29 100644 --- a/graphql/pyutils/contain_subset.py +++ b/graphql/pyutils/contain_subset.py @@ -22,8 +22,7 @@ def contain_subset(expected, actual): return False if isinstance(expected, list): aa = actual[:] - return all(any(contain_subset(exp, act) for act in aa) - for exp in expected) + return all(any(contain_subset(exp, act) for act in aa) for exp in expected) for key in expected: # type: ignore eo = expected[key] ao = actual.get(key) diff --git a/graphql/utils/tests/test_build_client_schema.py b/graphql/utils/tests/test_build_client_schema.py index 84b3b53c..decc2852 100644 --- a/graphql/utils/tests/test_build_client_schema.py +++ b/graphql/utils/tests/test_build_client_schema.py @@ -1,5 +1,4 @@ from collections import OrderedDict -from pprint import pprint from pytest import raises @@ -714,7 +713,7 @@ def test_throws_when_missing_kind(): ) -def test_succeds_on_smaller_equals_than_7_deep_lists(): +def test_succeeds_on_smaller_equals_than_7_deep_lists(): schema = GraphQLSchema( query=GraphQLObjectType( name="Query",