Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions tests/execution/test_variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
"""
Expand Down