updated to reflect changes to graphql-core

This commit is contained in:
Alec Aivazis 2016-05-06 08:55:17 -07:00
parent 6272057997
commit 1d44f5f918
34 changed files with 39 additions and 41 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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'''

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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):

View File

@ -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