You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E requests.exceptions.ConnectionError: Connection refused by Responses - the call doesn't match any registered mock.
E
E Request:
E - GET https://example.com/
E
E Available matches:
E - GET https://example.com/ Arguments don't match: {} doesn't match {allow_redirects: False}
The text was updated successfully, but these errors were encountered:
Unfortunately this is a limitation of responses. requests does not include allow_redirects as a property on the prepared request objects that responses has access to.
Describe the bug
I'm trying to mock a request that passes request arguments. In this case,
allow_redirects=False
. I'm reading the document but I can't seem to get it working: https://github.com/getsentry/responses#request-keyword-arguments-matcherAm I doing something wrong or is this a bug?
Additional context
No response
Version of
responses
0.22.0
Steps to Reproduce
Expected Result
Test should pass.
Actual Result
Test fails with the following error:
The text was updated successfully, but these errors were encountered: