Skip to content

Commit f1cd056

Browse files
committed
Rename things
1 parent 7eb5a26 commit f1cd056

File tree

12 files changed

+11
-14
lines changed

12 files changed

+11
-14
lines changed

graphql/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from .executor.executor import execute, ExecutionResult
1+
from .execution import execute, ExecutionResult
22
from .language.source import Source
33
from .language.parser import parse
44
from .validation import validate

graphql/core/executor/executor.py renamed to graphql/core/execution/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -394,11 +394,9 @@ def get_field_def(schema, parent_type, field_ast):
394394
added to the query type, but that would require mutating type
395395
definitions, which would cause issues."""
396396
name = field_ast.name.value
397-
if name == SchemaMetaFieldDef.name and \
398-
schema.get_query_type() == parent_type:
397+
if name == SchemaMetaFieldDef.name and schema.get_query_type() == parent_type:
399398
return SchemaMetaFieldDef
400-
elif name == TypeMetaFieldDef.name and \
401-
schema.get_query_type() == parent_type:
399+
elif name == TypeMetaFieldDef.name and schema.get_query_type() == parent_type:
402400
return TypeMetaFieldDef
403401
elif name == TypeNameMetaFieldDef.name:
404402
return TypeNameMetaFieldDef
File renamed without changes.

graphql/core/executor/__init__.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/core_executor/test_executor.py renamed to tests/core_execution/test_executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from pytest import raises
2-
from graphql.core.executor import execute
2+
from graphql.core.execution import execute
33
from graphql.core.language.parser import parse
44
from graphql.core.type import (GraphQLSchema, GraphQLObjectType, GraphQLField,
55
GraphQLArgument, GraphQLList, GraphQLInt, GraphQLString)

tests/core_executor/test_executor_schema.py renamed to tests/core_execution/test_executor_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from graphql.core.executor import execute
1+
from graphql.core.execution import execute
22
from graphql.core.language.parser import parse
33
from graphql.core.type import (
44
GraphQLSchema,

tests/core_executor/test_lists.py renamed to tests/core_execution/test_lists.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from graphql.core.executor.executor import execute
1+
from graphql.core.execution import execute
22
from graphql.core.language.parser import parse
33
from graphql.core.type import (
44
GraphQLSchema,

tests/core_executor/test_mutations.py renamed to tests/core_execution/test_mutations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from graphql.core.executor import execute
1+
from graphql.core.execution import execute
22
from graphql.core.language.parser import parse
33
from graphql.core.type import (GraphQLSchema, GraphQLObjectType, GraphQLField,
44
GraphQLArgument, GraphQLList, GraphQLInt, GraphQLString)

tests/core_executor/test_nonnull.py renamed to tests/core_execution/test_nonnull.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from graphql.core.language.parser import parse
22
from graphql.core.type import GraphQLObjectType, GraphQLField, GraphQLString, GraphQLNonNull, GraphQLSchema
3-
from graphql.core.executor import execute
3+
from graphql.core.execution import execute
44

55
sync_error = Exception('sync')
66
non_null_sync_error = Exception('nonNullSync')

tests/core_executor/test_union_interface.py renamed to tests/core_execution/test_union_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from graphql.core.executor import execute
1+
from graphql.core.execution import execute
22
from graphql.core.language.parser import parse
33
from graphql.core.type import (
44
GraphQLSchema,

0 commit comments

Comments
 (0)