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
Hmm, i think this is a documentation issue. The way requests-mock works is via the Adapter.send method of requests and at which point the prepared bit has already been done.
In this case though actually the object is a _RequestObjectProxy which has a few helper methods, so i'll look at fixing the doc but if there's something you need like params we can probably make it work.
Documentation says that
request
is of typeRequest
but my callback function is receiving aPreparedRequest
object instead.My spec:
python = "^3.10"
requests = "^2.27.1"
pytest = "^7.1.1"
requests-mock = "^1.9.3"
The text was updated successfully, but these errors were encountered: