From 6811f93aa432410f5ab6ebc255cf25257e621dea Mon Sep 17 00:00:00 2001 From: Markus Padourek Date: Tue, 26 Jul 2016 18:24:15 +0100 Subject: [PATCH] Fix last imports. --- examples/starwars_relay/tests/test_connections.py | 3 +++ graphene/relay/connection.py | 4 ++++ graphene/relay/types.py | 2 -- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/examples/starwars_relay/tests/test_connections.py b/examples/starwars_relay/tests/test_connections.py index 17b6865f..93527350 100644 --- a/examples/starwars_relay/tests/test_connections.py +++ b/examples/starwars_relay/tests/test_connections.py @@ -34,5 +34,8 @@ def test_correct_fetch_first_ship_rebels(): } } result = schema.execute(query) + print('-------------------------------') + print(result) + print(result.errors) assert not result.errors assert result.data == expected diff --git a/graphene/relay/connection.py b/graphene/relay/connection.py index 2c9e3952..b0652823 100644 --- a/graphene/relay/connection.py +++ b/graphene/relay/connection.py @@ -1,3 +1,7 @@ +from collections import Iterable + +from graphql_relay.connection.arrayconnection import connection_from_list + from ..core.classtypes import ObjectType from ..core.types import Field, Boolean, String, List from ..utils import memoize diff --git a/graphene/relay/types.py b/graphene/relay/types.py index e79519b2..e3c33e30 100644 --- a/graphene/relay/types.py +++ b/graphene/relay/types.py @@ -1,11 +1,9 @@ import inspect import warnings -from collections import Iterable from functools import wraps import six -from graphql_relay.connection.arrayconnection import connection_from_list from graphql_relay.node.node import to_global_id from ..core.classtypes import InputObjectType, Interface, Mutation, ObjectType