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
Are there any introspections I can do in call_it to ask what matchers have been attached and are active?
Use responses.registered() to get the list of registered mock responses. You'd have to look at each mock response individually to see which matchers are defined.
Or can I turn on verbose logging to see the thought process involved?
There is no additional logging that can be enabled. You may want to use assert_all_requests_are_fired=True in your responses.activate() call to get better error messages when response mocks are defined but not used.
If this logic is from your application code, the reason it isn't working is that you're using responses in application code. Instead your application should be using requests to send requests.
Describe the bug
I am probably looking in the wrong place, but I am failing to find documentation on what to do when a matcher fails to match.
I have this code in my test
and then in a different module
mod
but I don't get a match. Something is obviously wrong.
Are there any introspections I can do in
call_it
to ask what matchers have been attached and are active?Or can I turn on verbose logging to see the thought process involved?
I don't even know how to ask if
responses.activate
is still active.Additional context
No response
Version of
responses
0.23.3
Steps to Reproduce
This was in the main text. This is not a bug report, but a request for help finding documentation.
Expected Result
I would like help finding the documentation that describes how to debug unexpected outcomes.
Actual Result
neither me or google can find any debugging or intospection documentation. I'd love to ask the system why it did or did not match a request.
I don't even know how to ask if
responses.activate
is still active.The text was updated successfully, but these errors were encountered: