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
When adding an url in responses, querystring is not matched by default:
@responses.activatedeftest_my_test():
responses.add(responses.GET, "http://www.example.com")
# Both these requests will be capturedrequests.get("http://www.example.com")
requests.get("http://www.example.com?hello=world")
assert_call_count doesn't reproduce this behaviour:
@responses.activatedeftest_assert_call_count_always_match_qs():
responses.add(responses.GET, "http://www.example.com")
requests.get("http://www.example.com")
requests.get("http://www.example.com?hello=world")
# One call on each url, querystring is matched by defaultresponses.assert_call_count("http://www.example.com", 1) isTrueresponses.assert_call_count("http://www.example.com?hello=world", 1) isTrue
I would like to be able to check the call count on one particular url without matching querystring, eg.:
When adding an url in
responses
, querystring is not matched by default:assert_call_count
doesn't reproduce this behaviour:I would like to be able to check the call count on one particular url without matching querystring, eg.:
The text was updated successfully, but these errors were encountered: