From ab17b94fbb09c880b47ed7c16602614c79b9a1be Mon Sep 17 00:00:00 2001 From: Christoph Zwerschke Date: Mon, 30 Dec 2019 23:55:59 +0100 Subject: [PATCH] Fix typo and black formatting, remove unused import --- graphql/pyutils/contain_subset.py | 3 +-- graphql/utils/tests/test_build_client_schema.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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",