Skip to content

Commit 5d4def9

Browse files
committed
Fix errors
1 parent e9ce3d2 commit 5d4def9

File tree

57 files changed

+121
-106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+121
-106
lines changed

graphql/execution/tests/test_abstract.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from graphql import graphql
22
from graphql.type import GraphQLBoolean, GraphQLSchema, GraphQLString
33
from graphql.type.definition import (GraphQLField, GraphQLInterfaceType,
4-
GraphQLList, GraphQLObjectType,
5-
GraphQLUnionType)
4+
GraphQLList, GraphQLObjectType,
5+
GraphQLUnionType)
66

77

88
class Dog(object):

graphql/execution/tests/test_concurrent_executor.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
from graphql.error import format_error
44
from graphql.execution import Executor
5-
from graphql.execution.middlewares.sync import \
6-
SynchronousExecutionMiddleware
5+
from graphql.execution.middlewares.sync import SynchronousExecutionMiddleware
76
from graphql.pyutils.defer import Deferred, fail, succeed
87
from graphql.type import (GraphQLArgument, GraphQLField, GraphQLInt,
9-
GraphQLList, GraphQLObjectType, GraphQLSchema,
10-
GraphQLString)
8+
GraphQLList, GraphQLObjectType, GraphQLSchema,
9+
GraphQLString)
1110
from graphql.type.definition import GraphQLNonNull
1211

1312
from .utils import raise_callback_results

graphql/execution/tests/test_default_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from graphql.execution import (Executor, get_default_executor,
2-
set_default_executor)
2+
set_default_executor)
33

44

55
def test_get_and_set_default_executor():

graphql/execution/tests/test_deferred.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from pytest import raises
22

33
from graphql.pyutils.defer import (AlreadyCalledDeferred, Deferred,
4-
DeferredDict, DeferredException,
5-
DeferredList, fail, succeed)
4+
DeferredDict, DeferredException,
5+
DeferredList, fail, succeed)
66

77

88
def test_succeed():

graphql/execution/tests/test_directives.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from graphql.execution import execute
22
from graphql.language.parser import parse
33
from graphql.type import (GraphQLField, GraphQLObjectType, GraphQLSchema,
4-
GraphQLString)
4+
GraphQLString)
55

66
schema = GraphQLSchema(
77
query=GraphQLObjectType(

graphql/execution/tests/test_executor.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55

66
from graphql.error import GraphQLError
77
from graphql.execution import Executor, execute
8-
from graphql.execution.middlewares.sync import \
9-
SynchronousExecutionMiddleware
8+
from graphql.execution.middlewares.sync import SynchronousExecutionMiddleware
109
from graphql.language.parser import parse
1110
from graphql.type import (GraphQLArgument, GraphQLBoolean, GraphQLField,
12-
GraphQLInt, GraphQLList, GraphQLObjectType,
13-
GraphQLSchema, GraphQLString)
11+
GraphQLInt, GraphQLList, GraphQLObjectType,
12+
GraphQLSchema, GraphQLString)
1413

1514

1615
def test_executes_arbitary_code():

graphql/execution/tests/test_executor_schema.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
from graphql.execution import execute
22
from graphql.language.parser import parse
33
from graphql.type import (GraphQLArgument, GraphQLBoolean, GraphQLField,
4-
GraphQLID, GraphQLInt, GraphQLList,
5-
GraphQLNonNull, GraphQLObjectType,
6-
GraphQLSchema, GraphQLString)
4+
GraphQLID, GraphQLInt, GraphQLList, GraphQLNonNull,
5+
GraphQLObjectType, GraphQLSchema, GraphQLString)
76

87

98
def test_executes_using_a_schema():

graphql/execution/tests/test_gevent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
from graphql.error import format_error
55
from graphql.execution import Executor
66
from graphql.execution.middlewares.gevent import (GeventExecutionMiddleware,
7-
run_in_greenlet)
7+
run_in_greenlet)
88
from graphql.language.location import SourceLocation
99
from graphql.type import (GraphQLField, GraphQLObjectType, GraphQLSchema,
10-
GraphQLString)
10+
GraphQLString)
1111

1212

1313
def test_gevent_executor():

graphql/execution/tests/test_lists.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
from graphql.language.parser import parse
66
from graphql.pyutils.defer import fail, succeed
77
from graphql.type import (GraphQLField, GraphQLInt, GraphQLList,
8-
GraphQLNonNull, GraphQLObjectType,
9-
GraphQLSchema)
8+
GraphQLNonNull, GraphQLObjectType, GraphQLSchema)
109

1110
Data = namedtuple('Data', 'test')
1211
ast = parse('{ nest { test } }')

graphql/execution/tests/test_middleware.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from graphql.execution.middlewares.utils import (merge_resolver_tags,
2-
resolver_has_tag,
3-
tag_resolver)
2+
resolver_has_tag,
3+
tag_resolver)
44

55

66
def test_tag_resolver():

0 commit comments

Comments
 (0)