Skip to content

UX improvement: calls on callbacks #754

Description

@WilliamDEdwards

The add method returns a BaseResponse, on which you can find calls using calls.

The add_callback method doesn't. Users can get calls from the generic RequestsMock object, but that requires searching for the right request, for which responses provides no native methods.

Solutions:

  • Let add_callback return BaseResponse (probably not possible)
  • Add built-in way to search for calls on the RequestsMock object, preferably those belonging to a specific response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions