mocking request and still getting certain ones locally

Larry Martell larry.martell at gmail.com
Tue Sep 8 01:29:03 CEST 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