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
my main code uses requests.get(url, params=payload) to access the API with URL parameters, and my test code tried to mock the request with the following code, but it failed with 239: ConnectionError.
my main code uses
requests.get(url, params=payload)
to access the API with URL parameters, and my test code tried to mock the request with the following code, but it failed with239: ConnectionError
.Test code:
and error message:
And I tried eliminating URL parameters in
responses.add()
in the test code, i.e.:This made the test passed. I think
responses.add()
is not handlingparams
variables inrequests.get()
.The text was updated successfully, but these errors were encountered: