mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-30 05:23:57 +03:00
updated to reflect changes to graphql-core
This commit is contained in:
parent
6272057997
commit
1d44f5f918
|
@ -1,4 +1,4 @@
|
|||
from graphql.core.type import GraphQLObjectType
|
||||
from graphql.type import GraphQLObjectType
|
||||
from mock import patch
|
||||
|
||||
from graphene import Schema
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from graphql.core.type import GraphQLObjectType
|
||||
from graphql.type import GraphQLObjectType
|
||||
from pytest import raises
|
||||
|
||||
from graphene import Schema
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import six
|
||||
from graphql.core.type import GraphQLEnumType, GraphQLEnumValue
|
||||
from graphql.type import GraphQLEnumType, GraphQLEnumValue
|
||||
|
||||
from .base import ClassTypeMeta, ClassType
|
||||
from ..types.base import MountedType
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from functools import partial
|
||||
|
||||
from graphql.core.type import GraphQLInputObjectType
|
||||
from graphql.type import GraphQLInputObjectType
|
||||
|
||||
from .base import FieldsClassType
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from functools import partial
|
||||
|
||||
import six
|
||||
from graphql.core.type import GraphQLInterfaceType
|
||||
from graphql.type import GraphQLInterfaceType
|
||||
|
||||
from .base import FieldsClassTypeMeta
|
||||
from .objecttype import ObjectType, ObjectTypeMeta
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from functools import partial
|
||||
|
||||
import six
|
||||
from graphql.core.type import GraphQLObjectType
|
||||
from graphql.type import GraphQLObjectType
|
||||
|
||||
from graphene import signals
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from graphql.core.type import GraphQLScalarType
|
||||
from graphql.type import GraphQLScalarType
|
||||
|
||||
from ..types.base import MountedType
|
||||
from .base import ClassType
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from graphql.core.type import GraphQLEnumType
|
||||
from graphql.type import GraphQLEnumType
|
||||
|
||||
from graphene.core.schema import Schema
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
from graphql.core.type import GraphQLInputObjectType
|
||||
from graphql.type import GraphQLInputObjectType
|
||||
|
||||
from graphene.core.schema import Schema
|
||||
from graphene.core.types import String
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from graphql.core.type import GraphQLInterfaceType, GraphQLObjectType
|
||||
from graphql.type import GraphQLInterfaceType, GraphQLObjectType
|
||||
from py.test import raises
|
||||
|
||||
from graphene.core.schema import Schema
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
from graphql.core.type import GraphQLObjectType
|
||||
from graphql.type import GraphQLObjectType
|
||||
|
||||
from graphene.core.schema import Schema
|
||||
from graphene.core.types import String
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from graphql.core.type import GraphQLObjectType
|
||||
from graphql.type import GraphQLObjectType
|
||||
from py.test import raises
|
||||
|
||||
from graphene.core.schema import Schema
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from graphql.core.type import GraphQLScalarType
|
||||
from graphql.type import GraphQLScalarType
|
||||
|
||||
from ...schema import Schema
|
||||
from ..scalar import Scalar
|
||||
|
@ -6,7 +6,7 @@ from ..scalar import Scalar
|
|||
|
||||
def test_custom_scalar():
|
||||
import datetime
|
||||
from graphql.core.language import ast
|
||||
from graphql.language import ast
|
||||
|
||||
class DateTimeScalar(Scalar):
|
||||
'''DateTimeScalar Documentation'''
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from graphql.core.type import GraphQLUnionType
|
||||
from graphql.type import GraphQLUnionType
|
||||
|
||||
from graphene.core.schema import Schema
|
||||
from graphene.core.types import String
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from functools import partial
|
||||
|
||||
import six
|
||||
from graphql.core.type import GraphQLUnionType
|
||||
from graphql.type import GraphQLUnionType
|
||||
|
||||
from .base import FieldsClassType, FieldsClassTypeMeta, FieldsOptions
|
||||
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
import inspect
|
||||
from collections import OrderedDict
|
||||
|
||||
from graphql.core.execution.executor import Executor
|
||||
from graphql.core.execution.middlewares.sync import \
|
||||
SynchronousExecutionMiddleware
|
||||
from graphql.core.type import GraphQLSchema as _GraphQLSchema
|
||||
from graphql.core.utils.introspection_query import introspection_query
|
||||
from graphql.core.utils.schema_printer import print_schema
|
||||
from graphql.execution.executors.sync import SyncExecutor
|
||||
from graphql.type import GraphQLSchema as _GraphQLSchema
|
||||
from graphql.utils.introspection_query import introspection_query
|
||||
from graphql.utils.schema_printer import print_schema
|
||||
|
||||
from graphene import signals
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from graphql.core.type import (GraphQLBoolean, GraphQLField, GraphQLFloat,
|
||||
from graphql.type import (GraphQLBoolean, GraphQLField, GraphQLFloat,
|
||||
GraphQLID, GraphQLInt, GraphQLNonNull,
|
||||
GraphQLString)
|
||||
from py.test import raises
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
|
||||
from graphql.core import graphql
|
||||
from graphql.core.type import GraphQLSchema
|
||||
from graphql import graphql
|
||||
from graphql.type import GraphQLSchema
|
||||
|
||||
from graphene.core.fields import Field
|
||||
from graphene.core.schema import Schema
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from graphql.core import graphql
|
||||
from graphql import graphql
|
||||
from py.test import raises
|
||||
|
||||
from graphene import Interface, List, ObjectType, Schema, String
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
from functools import wraps
|
||||
from itertools import chain
|
||||
|
||||
from graphql.core.type import GraphQLArgument
|
||||
from graphql.type import GraphQLArgument
|
||||
|
||||
from ...utils import ProxySnakeDict
|
||||
from .base import ArgumentType, GroupNamedType, NamedType, OrderedType
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import json
|
||||
import iso8601
|
||||
|
||||
from graphql.core.language import ast
|
||||
from graphql.language import ast
|
||||
|
||||
from ...core.classtypes.scalar import Scalar
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import six
|
||||
from graphql.core.type import GraphQLList, GraphQLNonNull
|
||||
from graphql.type import GraphQLList, GraphQLNonNull
|
||||
|
||||
from .base import LazyType, MountedType, MountType
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ from collections import OrderedDict
|
|||
from functools import wraps
|
||||
|
||||
import six
|
||||
from graphql.core.type import GraphQLField, GraphQLInputObjectField
|
||||
from graphql.type import GraphQLField, GraphQLInputObjectField
|
||||
|
||||
from ...utils import maybe_func
|
||||
from ..classtypes.base import FieldsClassType
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from graphql.core.type import (GraphQLBoolean, GraphQLFloat, GraphQLID,
|
||||
from graphql.type import (GraphQLBoolean, GraphQLFloat, GraphQLID,
|
||||
GraphQLInt, GraphQLString)
|
||||
|
||||
from .base import MountedType
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from graphql.core.type import GraphQLArgument
|
||||
from graphql.type import GraphQLArgument
|
||||
from pytest import raises
|
||||
|
||||
from graphene.core.schema import Schema
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import iso8601
|
||||
|
||||
from graphql.core.language.ast import StringValue
|
||||
from graphql.language.ast import StringValue
|
||||
|
||||
from ..custom_scalars import DateTime
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from graphql.core.type import GraphQLList, GraphQLNonNull, GraphQLString
|
||||
from graphql.type import GraphQLList, GraphQLNonNull, GraphQLString
|
||||
|
||||
from graphene.core.schema import Schema
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from graphql.core.type import (GraphQLField, GraphQLInputObjectField,
|
||||
from graphql.type import (GraphQLField, GraphQLInputObjectField,
|
||||
GraphQLString)
|
||||
|
||||
from graphene.core.schema import Schema
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from graphql.core.type import (GraphQLBoolean, GraphQLFloat, GraphQLID,
|
||||
from graphql.type import (GraphQLBoolean, GraphQLFloat, GraphQLID,
|
||||
GraphQLInt, GraphQLString)
|
||||
|
||||
from graphene.core.schema import Schema
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from graphql.core.type import GraphQLInputObjectField
|
||||
from graphql.type import GraphQLInputObjectField
|
||||
|
||||
import graphene
|
||||
from graphene import relay
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import pytest
|
||||
from graphql.core.type import GraphQLID, GraphQLNonNull
|
||||
from graphql.type import GraphQLID, GraphQLNonNull
|
||||
|
||||
import graphene
|
||||
from graphene import relay
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
from graphql.core.type import GraphQLList
|
||||
from graphql.type import GraphQLList
|
||||
from pytest import raises
|
||||
|
||||
import graphene
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
from collections import OrderedDict
|
||||
|
||||
from graphql.core.type import GraphQLEnumType, GraphQLEnumValue
|
||||
from graphql.type import GraphQLEnumType, GraphQLEnumValue
|
||||
|
||||
|
||||
def enum_to_graphql_enum(enumeration):
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import collections
|
||||
|
||||
from graphql.core.type import GraphQLEnumType
|
||||
from graphql.type import GraphQLEnumType
|
||||
|
||||
from ..misc import enum_to_graphql_enum
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user