Update testing.rst (#1026)

Co-authored-by: DJ Kim <djkim@paloaltonetworks.com>
This commit is contained in:
DJ Kim 2020-08-26 07:01:44 -08:00 committed by GitHub
parent 88eefb0e07
commit f5d94fda1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,6 +90,7 @@ To use pytest define a simple fixture using the query helper below
.. code:: python .. code:: python
# Create a fixture using the graphql_query helper and `client` fixture from `pytest-django`. # Create a fixture using the graphql_query helper and `client` fixture from `pytest-django`.
import json
import pytest import pytest
from graphene_django.utils.testing import graphql_query from graphene_django.utils.testing import graphql_query