Skip to content

Releases: Colin-b/pytest_httpx

0.21.0 (2022-05-24)

24 May 16:31
ef1637c
Compare
Choose a tag to compare

Changed

Removed

  • Python 3.6 is no longer supported.

0.20.0 (2022-02-05)

05 Feb 16:44
c3a8e45
Compare
Choose a tag to compare

Added

0.19.0 (2022-01-26)

26 Jan 17:21
bb3f5ef
Compare
Choose a tag to compare

Changed

Removed

  • Python 3.6 is no longer supported.

0.18.0 (2022-01-17)

17 Jan 13:14
6890383
Compare
Choose a tag to compare

Fixed

  • Callback are now executed as expected when there is a matching already sent response.

Changed

  • Registration order is now looking at responses and callbacks. Prior to this version, registration order was looking at responses before callbacks.

Removed

  • httpx_mock.add_response data, files and boundary parameters have been removed. It was deprecated since 0.17.0. Refer to this version changelog entry for more details on how to update your code.

0.17.3 (2021-12-27)

27 Dec 21:24
98b6201
Compare
Choose a tag to compare

Fixed

  • A callback can now raise an exception again (regression in mypy check since [0.16.0]).

Added

  • An exception can now be raised without creating a callback by using httpx_mock.add_exception method.

0.17.2 (2021-12-23)

23 Dec 12:31
8dec995
Compare
Choose a tag to compare

Fixed

  • Do not consider a callback response as read, even if it is not a stream, before returning to httpx. Allowing any specific httpx handling to be triggered such as httpx.Response.elapsed computing.

0.17.1 (2021-12-20)

20 Dec 16:01
83f3116
Compare
Choose a tag to compare

Fixed

  • Do not consider a response as read, even if it is not a stream, before returning to httpx. Allowing any specific httpx handling to be triggered such as httpx.Response.elapsed computing.

0.17.0 (2021-12-20)

20 Dec 15:26
b5c1aa9
Compare
Choose a tag to compare

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.

0.16.0 (2021-12-20)

20 Dec 13:50
a407d7e
Compare
Choose a tag to compare

Changed

  • Callbacks are now expected to have a single parameter, the request. The previously second parameter extensions, can still be accessed via request.extensions.

Fixed

  • Allow for users to run mypy --strict.

0.15.0 (2021-11-16)

16 Nov 01:50
ab1965e
Compare
Choose a tag to compare

Changed