New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make asserts on service doubles easier #30

Open
thomir opened this Issue May 22, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@thomir
Copy link
Contributor

thomir commented May 22, 2017

It needs to be trivial to assert on the payload sent to a service double. Currently this is a PITA because:

  • responses stores all mock calls in a single list, and does not support starting more than one mock at once
  • responses stores the PreparedRequest, which means callers need to decode request body etc. This should be simpler, ideally allowing a caller to access the request json directly.

Probably this means switching to something other than responses under the hood. Thankfully responses is pretty small and well written, so we can crib from them easily enough.

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