From 9b28519dee9cdbe468a3244d119dccc077bcaaa0 Mon Sep 17 00:00:00 2001 From: DJ Kim Date: Tue, 18 Aug 2020 16:02:05 -0700 Subject: [PATCH] Update testing.rst --- docs/testing.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/testing.rst b/docs/testing.rst index 23acef2..e18f61a 100644 --- a/docs/testing.rst +++ b/docs/testing.rst @@ -90,11 +90,12 @@ To use pytest define a simple fixture using the query helper below .. code:: python # Create a fixture using the graphql_query helper and `client` fixture from `pytest-django`. + import json import pytest from graphene_django.utils.testing import graphql_query @pytest.fixture - def client_query(client) + def client_query(client): def func(*args, **kwargs): return graphql_query(*args, **kwargs, client=client)