Skip to content

Commit

Permalink
Fix typo and black formatting, remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Dec 30, 2019
1 parent 3a1f40e commit ab17b94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions graphql/pyutils/contain_subset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions graphql/utils/tests/test_build_client_schema.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from collections import OrderedDict
from pprint import pprint

from pytest import raises

Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit ab17b94

Please sign in to comment.