diff --git a/graphene_django/utils/testing.py b/graphene_django/utils/testing.py index 7c9b15225..a419c7dc6 100644 --- a/graphene_django/utils/testing.py +++ b/graphene_django/utils/testing.py @@ -1,6 +1,6 @@ import json -from django.test import TestCase, Client +from django.test import TestCase DEFAULT_GRAPHQL_URL = "/graphql/" @@ -68,12 +68,6 @@ class GraphQLTestCase(TestCase): # URL to graphql endpoint GRAPHQL_URL = DEFAULT_GRAPHQL_URL - @classmethod - def setUpClass(cls): - super(GraphQLTestCase, cls).setUpClass() - - cls._client = Client() - def query(self, query, op_name=None, input_data=None, variables=None, headers=None): """ Args: @@ -99,7 +93,7 @@ def query(self, query, op_name=None, input_data=None, variables=None, headers=No input_data=input_data, variables=variables, headers=headers, - client=self._client, + client=self.client, graphql_url=self.GRAPHQL_URL, )