mirror of
https://github.com/graphql-python/graphene.git
synced 2025-07-27 08:19:45 +03:00
Fix test to pass once more
This commit is contained in:
parent
2a9c408e39
commit
883848a15c
|
@ -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. '
|
||||
|
|
Loading…
Reference in New Issue
Block a user