Skip to content

Add ability to set headers in GraphQLTestCases #817

Closed
@curlywurlycraig

Description

@curlywurlycraig

When calling self.query within tests, there is currently no way to specify headers. It would be helpful to be able to specify headers in cases where, e.g., GraphQLView is overridden to check the Authorization header.

I've identified the line that needs to be updated:

self.GRAPHQL_URL, json.dumps(body), content_type="application/json"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions