Skip to content

Am i able to mock response with gql? #356

@Mimezzz

Description

@Mimezzz

I am trying to do some unit tests and i used requests_mock.

I got an error "Invalid or incomplete introspection result. Ensure that you are passing the 'data' attribute of an introspection response and no 'errors' were returned alongside"

i searched for mock test instructions in the doco but cant find anything. i found with graphine one seemed to be able to mock a test by patching it. Not sure if there is a go-to solution with this client?

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