v0.24.0
版本发布时间: 2023-09-05 02:46:01
Colin-b/pytest_httpx最新发布版本:v0.31.2(2024-09-24 01:21:15)
Added
- Added
match_json
parameter which allows matching on JSON decoded body (matching against python representation instead of bytes).
Changed
- Even if it was never documented as a feature, the
match_headers
parameter was not considering header names case when matching.- As this might have been considered a feature by some users, the fact that
match_headers
will now respect casing is documented as a breaking change.
- As this might have been considered a feature by some users, the fact that
Fixed
- Matching on headers does not ignore name case anymore, the name must now be cased as sent (as some servers might expect a specific case).
- Error message in case a request does not match will now include request headers with mismatching name case as well.
- Error message in case a request does not match will now include request headers when not provided as lower-cased to
match_headers
. - Add
:Any
type hint to**matchers
function arguments to satisfy strict type checking mode inpyright
.