mirror of
https://github.com/graphql-python/graphene-django.git
synced 2024-11-22 09:37:07 +03:00
Update testing.rst (#1026)
Co-authored-by: DJ Kim <djkim@paloaltonetworks.com>
This commit is contained in:
parent
88eefb0e07
commit
f5d94fda1f
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user