Fix docs testing for GRAPHQL_SCHEMA (#1020)

Resolve error: "AttributeError: Variable GRAPHQL_SCHEMA not defined in
GraphQLTestCase."
This commit is contained in:
Elena Williams 2020-08-13 14:33:39 +10:00
parent 5b1451132d
commit 8c96dfa72a

View File

@ -16,7 +16,12 @@ Usage:
from graphene_django.utils.testing import GraphQLTestCase
from my_fancy.schema import schema
class MyFancyTestCase(GraphQLTestCase):
GRAPHQL_SCHEMA = schema
def test_some_query(self):
response = self.query(
'''