mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-11 08:42:32 +03:00
Don't break backward compability
This commit is contained in:
parent
d545ad44fc
commit
8cbadd037c
|
@ -1,6 +1,7 @@
|
||||||
import json
|
import json
|
||||||
|
import warnings
|
||||||
|
|
||||||
from django.test import TestCase, Client
|
from django.test import Client, TestCase
|
||||||
|
|
||||||
DEFAULT_GRAPHQL_URL = "/graphql/"
|
DEFAULT_GRAPHQL_URL = "/graphql/"
|
||||||
|
|
||||||
|
@ -97,6 +98,15 @@ class GraphQLTestCase(TestCase):
|
||||||
graphql_url=self.GRAPHQL_URL,
|
graphql_url=self.GRAPHQL_URL,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def _client(self):
|
||||||
|
warnings.warn(
|
||||||
|
"Using `_client` is deprecated in favour of `client`.",
|
||||||
|
PendingDeprecationWarning,
|
||||||
|
stacklevel=2,
|
||||||
|
)
|
||||||
|
return self.client
|
||||||
|
|
||||||
def assertResponseNoErrors(self, resp, msg=None):
|
def assertResponseNoErrors(self, resp, msg=None):
|
||||||
"""
|
"""
|
||||||
Assert that the call went through correctly. 200 means the syntax is ok, if there are no `errors`,
|
Assert that the call went through correctly. 200 means the syntax is ok, if there are no `errors`,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user