Skip to content

Commit a67d78e

Browse files
author
markus
committed
Try with ordered dict.
1 parent 7a5ded4 commit a67d78e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

graphql_relay/mutation/tests/test_mutation.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from collections import OrderedDict
2+
13
from promise import Promise
24
from graphql import graphql
35
from graphql.type import (
@@ -315,7 +317,7 @@ def test_contains_correct_field():
315317
}
316318
}
317319
'''
318-
expected = {
320+
expected = OrderedDict({
319321
'__schema': {
320322
'mutationType': {
321323
'fields': [
@@ -402,7 +404,7 @@ def test_contains_correct_field():
402404
]
403405
}
404406
}
405-
}
407+
})
406408
result = graphql(schema, query)
407409
assert not result.errors
408410
assert result.data == expected

0 commit comments

Comments
 (0)