When creating a requests.Session with trust_env=False, the responses library fails to intercept the HTTP requests as expected. The request appears to bypass the mock entirely and attempts a real network call instead.
This behavior is not documented anywhere in the responses README or official documentation. It is unclear whether this is:
- A known limitation
- An intended behavior
- A bug
Kindly requesting either a fix or at minimum clear documentation of this interaction.
When creating a
requests.Sessionwithtrust_env=False, theresponseslibrary fails to intercept the HTTP requests as expected. The request appears to bypass the mock entirely and attempts a real network call instead.This behavior is not documented anywhere in the responses README or official documentation. It is unclear whether this is:
Kindly requesting either a fix or at minimum clear documentation of this interaction.