compare as dict for py3.5 compat.

This commit is contained in:
Markus Padourek 2016-09-12 15:34:20 +01:00
parent 47c1f3e655
commit 7f4541524a

View File

@ -124,4 +124,4 @@ def test_node_query():
'mutation a { say(input: {what:"hello", clientMutationId:"1"}) { phrase, clientMutationId, myNodeId} }' 'mutation a { say(input: {what:"hello", clientMutationId:"1"}) { phrase, clientMutationId, myNodeId} }'
) )
assert not executed.errors assert not executed.errors
assert executed.data == OrderedDict({'say': OrderedDict({'phrase': 'hello', 'clientMutationId': '1', 'myNodeId': to_global_id('MyNode', '1')})}) assert dict(executed.data) == {'say': {'myNodeId': to_global_id('MyNode', '1'), 'clientMutationId': '1', 'phrase': 'hello'}}