Skip to content

Commit eaf229c

Browse files
committed
Implement variable tests.
* The error returned by `get_variable_value` for incorrect types will now sort json keys for the unknown object (if it's a dict) #23
1 parent df9a9f9 commit eaf229c

File tree

2 files changed

+369
-305
lines changed

2 files changed

+369
-305
lines changed

graphql/core/execution/values.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def get_variable_value(schema, definition_ast, input):
100100
'Variable "${}" expected value of type "{}" but got: {}.'.format(
101101
variable.name.value,
102102
print_ast(definition_ast.type),
103-
json.dumps(input)
103+
json.dumps(input, sort_keys=True)
104104
),
105105
[definition_ast]
106106
)

0 commit comments

Comments
 (0)