-
Notifications
You must be signed in to change notification settings - Fork 375
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
Ignore some requests? #74
Comments
I'm trying to figure out what the API for this should look like. It's hard to disable the patch inside the app code without being able to modify the app code itself. |
It's probably easiest not to actually disable the patch - you're right, that seems difficult - but to introduce a per-host filter in the stub. I'm not too familiar with the inner workings of httplib, but if every set of requests to a host is preceded by a call to Then we could expose something like |
The Ruby VCR lib has ignore some requests implemented. I am particularly interested in |
mm nice, I like the Ruby VCR API. |
Add 2 new options, ignore_localhost and ignore_hosts, which can ignore requests so they aren't recorded in a cassette. Closes #74
💖 |
Imagine this code:
I'm working around this right now by using pycurl - which VCR.py can't mock - when exercising the app endpoint.
Is there a better way of ignoring some requests? The patch for requests looks pretty deep, and I can't put the vcr context manager inside app code.
The text was updated successfully, but these errors were encountered: