diff --git a/tests/execution/test_variables.py b/tests/execution/test_variables.py index 282ee98a..82faf3ae 100644 --- a/tests/execution/test_variables.py +++ b/tests/execution/test_variables.py @@ -176,6 +176,22 @@ def properly_parses_single_value_to_list(): None, ) + def properly_coerces_input_varaibles(): + result = execute_query( + """ + query FieldQuery($input: TestInputObject){ + fieldWithObjectInput(input: $input) + } + """, + variable_values={"input": {'a': "foo", 'b': "bar", 'c': "baz"}} + ) + assert result == ( + { + 'fieldWithObjectInput': "{'a': 'foo', 'b': ['bar'], 'c': 'baz'}" + }, + None + ) + def properly_parses_null_value_to_null(): result = execute_query( """