mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-11 00:32:24 +03:00
add graphql url as param
This commit is contained in:
parent
623d0f219e
commit
f22c4e931e
|
@ -72,7 +72,7 @@ class GraphQLTestMixin(object):
|
||||||
GRAPHQL_URL = DEFAULT_GRAPHQL_URL
|
GRAPHQL_URL = DEFAULT_GRAPHQL_URL
|
||||||
|
|
||||||
def query(
|
def query(
|
||||||
self, query, operation_name=None, input_data=None, variables=None, headers=None
|
self, query, operation_name=None, input_data=None, variables=None, headers=None, graphql_url=DEFAULT_GRAPHQL_URL
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Args:
|
Args:
|
||||||
|
@ -101,7 +101,7 @@ class GraphQLTestMixin(object):
|
||||||
variables=variables,
|
variables=variables,
|
||||||
headers=headers,
|
headers=headers,
|
||||||
client=self.client,
|
client=self.client,
|
||||||
graphql_url=self.GRAPHQL_URL,
|
graphql_url=graphql_url,
|
||||||
)
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|
Loading…
Reference in New Issue
Block a user