mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-04-14 06:04:23 +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
|
||||
|
||||
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:
|
||||
|
@ -101,7 +101,7 @@ class GraphQLTestMixin(object):
|
|||
variables=variables,
|
||||
headers=headers,
|
||||
client=self.client,
|
||||
graphql_url=self.GRAPHQL_URL,
|
||||
graphql_url=graphql_url,
|
||||
)
|
||||
|
||||
@property
|
||||
|
|
Loading…
Reference in New Issue
Block a user