From 8408c51bf9423402d308c2a7f9e8f574979cd5a3 Mon Sep 17 00:00:00 2001 From: Roberto Barreda Date: Mon, 26 Oct 2020 10:09:49 +0100 Subject: [PATCH] fix `variables` key in body (#1050) --- 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}