Skip to content

0.17.0 (2021-12-20)

Compare
Choose a tag to compare
@Colin-b Colin-b released this 20 Dec 15:26
· 240 commits to master since this release
b5c1aa9

Changed

  • httpx_mock.add_response data parameter is only used for multipart content. It was deprecated since 0.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 since 0.14.0. Refer to this version changelog entry for more details on how to update your code.

Deprecated

  • httpx_mock.add_response data, files and boundary parameters that were only used for multipart content. Instead, provide the stream parameter with an instance of the httpx._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.