v0.17.0
版本发布时间: 2021-12-20 23:26:34
Colin-b/pytest_httpx最新发布版本:v0.31.2(2024-09-24 01:21:15)
Changed
-
httpx_mock.add_response
data
parameter is only used for multipart content. It was deprecated since0.14.0
. Refer to this version changelog entry for more details on how to update your code.
Removed
-
pytest_httpx.to_response
function has been removed. It was deprecated since0.14.0
. Refer to this version changelog entry for more details on how to update your code.
Deprecated
-
httpx_mock.add_response
data
,files
andboundary
parameters that were only used for multipart content. Instead, provide thestream
parameter with an instance of thehttpx._multipart.MultipartStream
.
Fixed
- Responses are no more read or closed when returned to the client. Allowing to add a response once and reading it as a new response on every request.