Fix test to pass once more

This commit is contained in:
Daniel Gallagher 2018-05-28 14:41:02 -07:00
parent 2a9c408e39
commit 883848a15c

View File

@ -21,9 +21,11 @@ class MyUnion(graphene.Union):
def test_issue():
class Query(graphene.ObjectType):
things = relay.ConnectionField(MyUnion)
with pytest.raises(Exception) as exc_info:
class Query(graphene.ObjectType):
things = relay.ConnectionField(MyUnion)
graphene.Schema(query=Query)
assert str(exc_info.value) == (
'IterableConnectionField type have to be a subclass of Connection. '