From 8c96dfa72afec9462703dccf66a41f30f968b2a7 Mon Sep 17 00:00:00 2001 From: Elena Williams Date: Thu, 13 Aug 2020 14:33:39 +1000 Subject: [PATCH] Fix docs testing for GRAPHQL_SCHEMA (#1020) Resolve error: "AttributeError: Variable GRAPHQL_SCHEMA not defined in GraphQLTestCase." --- docs/testing.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/testing.rst b/docs/testing.rst index 23acef2..6538557 100644 --- a/docs/testing.rst +++ b/docs/testing.rst @@ -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( '''