diff --git a/graphene_django/utils/testing.py b/graphene_django/utils/testing.py index b1aa29b..7c9b152 100644 --- a/graphene_django/utils/testing.py +++ b/graphene_django/utils/testing.py @@ -45,7 +45,7 @@ def graphql_query( if variables: body["variables"] = variables if input_data: - if variables in body: + if "variables" in body: body["variables"]["input"] = input_data else: body["variables"] = {"input": input_data}