v0.10.0
版本发布时间: 2020-10-07 04:14:12
Colin-b/pytest_httpx最新发布版本:v0.31.2(2024-09-24 01:21:15)
Added
- Document how to assert that no requests were issued.
- Document how to send cookies.
- Explicit support for python 3.9
Changed
- Requires
httpx
==0.16.* - Update documentation to reflect the latest way of sending bytes using
httpx
. Viacontent
parameter instead ofdata
. - Code now follow
black==20.8b1
formatting instead of the git master version. - Sending a JSON response using
json
parameter will now set theapplication/json
content-type header by default.
Fixed
- Allow to provide any supported
httpx
headers type in headers parameter forhttpx_mock.add_response
andpytest_httpx.to_response
. Previously only dict was supported.