mocking request and still getting certain ones locally

Larry Martell larry.martell at gmail.com
Mon Sep 7 19:29:03 EDT 2015


I use the getsentry/responses package
(https://github.com/getsentry/responses) for mocking the requests
library for unit testing. It works great but now I have a situation
where I need to talk to a local server but have my remote requests
mocked out. With getsentry/responses I cannot do that - all the
requests go to the mock server. Has anyone done something like this
with any other package?



More information about the Python-list mailing list