Skip to content

Dynamnic response support #164

Description

@urkle

It would be really good to allow passing a function for the response payload so that it can be dynamically created.

requests-mock supports this ( https://requests-mock.readthedocs.io/en/latest/response.html#dynamic-response )

An example of this is I need to stub a series of requests to a single endpoint (but with a different ID in the URL) and I need to stub the response values based on that ID

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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions