Skip to content

UX improvement: calls on callbacks #754

@WilliamDEdwards

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions