From f6a0a772c7ac797088e7ea2067f633f1c111a138 Mon Sep 17 00:00:00 2001 From: Roberto Barreda Date: Fri, 23 Oct 2020 17:48:06 +0200 Subject: [PATCH] fix checking key in body --- graphene_django/utils/testing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}