mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-15 22:52:05 +03:00
Fix docs testing for GRAPHQL_SCHEMA (#1020)
Resolve error: "AttributeError: Variable GRAPHQL_SCHEMA not defined in GraphQLTestCase."
This commit is contained in:
parent
5b1451132d
commit
8c96dfa72a
|
@ -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(
|
||||
'''
|
||||
|
|
Loading…
Reference in New Issue
Block a user