Skip to content

Commit 8408c51

Browse files
fix variables key in body (#1050)
1 parent 8928ec2 commit 8408c51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphene_django/utils/testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def graphql_query(
4545
if variables:
4646
body["variables"] = variables
4747
if input_data:
48-
if variables in body:
48+
if "variables" in body:
4949
body["variables"]["input"] = input_data
5050
else:
5151
body["variables"] = {"input": input_data}

0 commit comments

Comments
 (0)