Remove unused GRAPHQL_SCHEMA related code

This commit is contained in:
Nikolai R Kristiansen 2020-07-31 15:36:17 +02:00
parent 9544e6f7c1
commit 99d20ff486
No known key found for this signature in database
GPG Key ID: 1A24E7511E55EF87

View File

@ -67,18 +67,11 @@ class GraphQLTestCase(TestCase):
# URL to graphql endpoint
GRAPHQL_URL = DEFAULT_GRAPHQL_URL
# Here you need to set your graphql schema for the tests
GRAPHQL_SCHEMA = None
@classmethod
def setUpClass(cls):
super(GraphQLTestCase, cls).setUpClass()
if not cls.GRAPHQL_SCHEMA:
raise AttributeError(
"Variable GRAPHQL_SCHEMA not defined in GraphQLTestCase."
)
cls._client = Client()
def query(self, query, op_name=None, input_data=None, variables=None, headers=None):