mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-02 20:54:16 +03:00
Update tests to reflect changes
This commit is contained in:
parent
aa0c401cb5
commit
d6a81ee7ff
|
@ -115,7 +115,7 @@ def test_node_field_only_type_wrong():
|
||||||
'{ onlyNode(id:"%s") { __typename, name } } ' % Node.to_global_id("MyOtherNode", 1)
|
'{ onlyNode(id:"%s") { __typename, name } } ' % Node.to_global_id("MyOtherNode", 1)
|
||||||
)
|
)
|
||||||
assert len(executed.errors) == 1
|
assert len(executed.errors) == 1
|
||||||
assert str(executed.errors[0]) == 'Must receive an MyOtherNode id.'
|
assert str(executed.errors[0]) == 'Must receive a MyNode id.'
|
||||||
assert executed.data == {'onlyNode': None}
|
assert executed.data == {'onlyNode': None}
|
||||||
|
|
||||||
|
|
||||||
|
@ -132,7 +132,7 @@ def test_node_field_only_lazy_type_wrong():
|
||||||
'{ onlyNodeLazy(id:"%s") { __typename, name } } ' % Node.to_global_id("MyOtherNode", 1)
|
'{ onlyNodeLazy(id:"%s") { __typename, name } } ' % Node.to_global_id("MyOtherNode", 1)
|
||||||
)
|
)
|
||||||
assert len(executed.errors) == 1
|
assert len(executed.errors) == 1
|
||||||
assert str(executed.errors[0]) == 'Must receive an MyOtherNode id.'
|
assert str(executed.errors[0]) == 'Must receive a MyNode id.'
|
||||||
assert executed.data == {'onlyNodeLazy': None}
|
assert executed.data == {'onlyNodeLazy': None}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user