Skip to content

Commit c41b183

Browse files
committed
Fixed lint in graphene.test
1 parent 6c2b940 commit c41b183

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

graphene/test/__init__.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ def format_execution_result(execution_result, format_error):
1818
response = {}
1919

2020
if execution_result.errors:
21-
response['errors'] = [format_error(e) for e in execution_result.errors]
21+
response['errors'] = [
22+
format_error(e) for e in execution_result.errors
23+
]
2224

2325
if not execution_result.invalid:
2426
response['data'] = execution_result.data
@@ -32,16 +34,14 @@ def __init__(self, schema, format_error=None, **execute_options):
3234
self.schema = schema
3335
self.execute_options = execute_options
3436
self.format_error = format_error or default_format_error
35-
37+
3638
def format_result(self, result):
37-
return format_execution_result(
38-
result,
39-
self.format_error
40-
)
39+
return format_execution_result(result, self.format_error)
4140

4241
def execute(self, *args, **kwargs):
43-
executed = self.schema.execute(*args, **dict(self.execute_options, **kwargs))
42+
executed = self.schema.execute(*args,
43+
**dict(self.execute_options, **kwargs))
4444
if is_thenable(executed):
4545
return Promise.resolve(executed).then(self.format_result)
46-
46+
4747
return self.format_result(executed)

0 commit comments

Comments
 (0)