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