Wed Sep 6 20:05:12 2023 UTC ()
py-test-httpx: updated to 0.24.0

0.24.0

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.

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 in [`pyright`](https://microsoft.github.io/pyright/#/).


(adam)
diff -r1.4 -r1.5 pkgsrc/www/py-test-httpx/Makefile
diff -r1.4 -r1.5 pkgsrc/www/py-test-httpx/distinfo

cvs diff -r1.4 -r1.5 pkgsrc/www/py-test-httpx/Makefile (expand / switch to unified diff)

--- pkgsrc/www/py-test-httpx/Makefile 2023/08/04 05:10:22 1.4
+++ pkgsrc/www/py-test-httpx/Makefile 2023/09/06 20:05:12 1.5
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.4 2023/08/04 05:10:22 adam Exp $ 1# $NetBSD: Makefile,v 1.5 2023/09/06 20:05:12 adam Exp $
2 2
3DISTNAME= pytest_httpx-0.23.1 3DISTNAME= pytest_httpx-0.24.0
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/pytest_/test-/} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/pytest_/test-/}
5CATEGORIES= www python 5CATEGORIES= www python
6MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest-httpx/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest-httpx/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://colin-b.github.io/pytest_httpx/ 9HOMEPAGE= https://colin-b.github.io/pytest_httpx/
10COMMENT= Send responses to httpx 10COMMENT= Send responses to httpx
11LICENSE= mit 11LICENSE= mit
12 12
13DEPENDS+= ${PYPKGPREFIX}-httpx>=0.24:../../www/py-httpx 13DEPENDS+= ${PYPKGPREFIX}-httpx>=0.24:../../www/py-httpx
14DEPENDS+= ${PYPKGPREFIX}-test>=6.0:../../devel/py-test 14DEPENDS+= ${PYPKGPREFIX}-test>=6.0:../../devel/py-test
15TEST_DEPENDS+= ${PYPKGPREFIX}-test-asyncio>=0.21:../../devel/py-test-asyncio 15TEST_DEPENDS+= ${PYPKGPREFIX}-test-asyncio>=0.21:../../devel/py-test-asyncio
16TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov>=4:../../devel/py-test-cov 16TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov>=4:../../devel/py-test-cov

cvs diff -r1.4 -r1.5 pkgsrc/www/py-test-httpx/distinfo (expand / switch to unified diff)

--- pkgsrc/www/py-test-httpx/distinfo 2023/08/04 05:10:22 1.4
+++ pkgsrc/www/py-test-httpx/distinfo 2023/09/06 20:05:12 1.5
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.4 2023/08/04 05:10:22 adam Exp $ 1$NetBSD: distinfo,v 1.5 2023/09/06 20:05:12 adam Exp $
2 2
3BLAKE2s (pytest_httpx-0.23.1.tar.gz) = bb64fc132a9cd9242d58b9e4d8c55eef5068e4bd459ac91e827b30e50720886c 3BLAKE2s (pytest_httpx-0.24.0.tar.gz) = ee73df2092857304e0e397bbd65b99c3ab1e32c74d430881941baba402f31643
4SHA512 (pytest_httpx-0.23.1.tar.gz) = 4490c716c341d782ebf02c29475b7618c0717bbaa736b0a0eefee8a7c8498d3474dd28d487469fe5806ba0018a07b538d2f583406f561c451de6f8a688d57901 4SHA512 (pytest_httpx-0.24.0.tar.gz) = b84b7fa80bcc80c8e1ef7324bd3e559d020b993bafa8835ea40bd33d6fc97208e391d86807ee2c7959eda01f615e1001876f346e67fb9dc645ad00a1feea9e64
5Size (pytest_httpx-0.23.1.tar.gz) = 29462 bytes 5Size (pytest_httpx-0.24.0.tar.gz) = 31665 bytes