responses
responses copied to clipboard
A utility for mocking out the Python Requests library.
### Describe the bug probably related to: https://github.com/getsentry/responses/issues/675 **Summary:** When using the _recorder functionality from the responses library to generate YAML files for testing, the recorded output includes both content_type...
## What type of PR is this? (check all applicable) - [ ] Refactor - [ ] Feature - [x] Bug Fix - [ ] Optimization - [ ] Documentation...
Hey folks, We're trying to update some libs and hit an odd issue with updating responses. Consider this test: ``` import responses import requests from cachecontrol import CacheControl def get_client():...
How can I combine multiple `RequestsMock` contexts so that they don't overwrite each other? In my specific case I'm using `RequestsMock` as pytest fixtures. If there isn't a supported way...
### Describe the bug The matcher `query_param_matcher` cannot match query parameters that have an empty string value. ### Additional context This is because `RequestsMock._parse_request_params` calls `parse_qsl` with the default argument...
I would like to add ability to simulate bad network conditions for example I would love to simulate a couple of request failing to improve the resilience of my code....
## What type of PR is this? (check all applicable) - [+] Feature ## Description Added support for `Retry-After` header which has "special" handling inside `urllib3` ## Related Issues -...
## What type of PR is this? (check all applicable) - [ ] Refactor - [x] Feature - [ ] Bug Fix - [ ] Optimization - [ ] Documentation...
### Describe the bug I want requests to retry for connection errors, but responses seems to override the adapter send function and doesn't retry in that case. Is there an...