Skip to content

Commit

Permalink
Merge pull request flavors#186 from flavors/fix/graphql-core-deprecat…
Browse files Browse the repository at this point in the history
…ion-warning

Fixed graphql-core deprecation warnings
  • Loading branch information
mongkok authored Apr 4, 2020
2 parents dd08b8d + 8d1c294 commit 1229f4b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion graphql_jwt/testcases.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ def credentials(self, **kwargs):
def execute(self, query, variables=None, **extra):
extra.update(self._credentials)
context = self.post('/', **extra)
return super().execute(query, context=context, variables=variables)

return super().execute(
query,
context_value=context,
variable_values=variables,
)

def authenticate(self, user):
self._credentials = {
Expand Down

0 comments on commit 1229f4b

Please sign in to comment.