pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/py-test-httpx



Module Name:    pkgsrc
Committed By:   adam
Date:           Sun Nov  3 12:16:21 UTC 2024

Modified Files:
        pkgsrc/www/py-test-httpx: Makefile distinfo

Log Message:
py-test-httpx: updated to 0.33.0

0.33.0

Added
- Explicit support for python `3.13`.
- `should_mock` option (callable returning a boolean) is now available, defaulting to always returning `True`. Refer to documentation for more details.
- Matching on the full multipart body can now be performed using `match_files` and `match_data` parameters. Refer to documentation for more details.
- Matching on extensions (including timeout) can now be performed using `match_extensions` parameter. Refer to documentation for more details.

Removed
- `non_mocked_hosts` option is not available anymore. Use `should_mock` instead as in the following sample:
  ```python
  import pytest

  @pytest.mark.httpx_mock(non_mocked_hosts=["my_local_test_host"])
  def test_previous_behavior(httpx_mock):
      ...

  @pytest.mark.httpx_mock(should_mock=lambda request: request.url.host not in ["my_local_test_host"])
  def test_new_behavior(httpx_mock):
      ...
  ```
  Please note that your hosts might need to be prefixed with `www.` depending on your usage.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/www/py-test-httpx/Makefile \
    pkgsrc/www/py-test-httpx/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/www/py-test-httpx/Makefile
diff -u pkgsrc/www/py-test-httpx/Makefile:1.13 pkgsrc/www/py-test-httpx/Makefile:1.14
--- pkgsrc/www/py-test-httpx/Makefile:1.13      Wed Oct  9 20:14:17 2024
+++ pkgsrc/www/py-test-httpx/Makefile   Sun Nov  3 12:16:21 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.13 2024/10/09 20:14:17 adam Exp $
+# $NetBSD: Makefile,v 1.14 2024/11/03 12:16:21 adam Exp $
 
-DISTNAME=      pytest_httpx-0.32.0
+DISTNAME=      pytest_httpx-0.33.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/^py//:S/_/-/}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest-httpx/}
Index: pkgsrc/www/py-test-httpx/distinfo
diff -u pkgsrc/www/py-test-httpx/distinfo:1.13 pkgsrc/www/py-test-httpx/distinfo:1.14
--- pkgsrc/www/py-test-httpx/distinfo:1.13      Wed Oct  9 20:14:17 2024
+++ pkgsrc/www/py-test-httpx/distinfo   Sun Nov  3 12:16:21 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.13 2024/10/09 20:14:17 adam Exp $
+$NetBSD: distinfo,v 1.14 2024/11/03 12:16:21 adam Exp $
 
-BLAKE2s (pytest_httpx-0.32.0.tar.gz) = 5d93f055500832881bc2f995740ab241c52d2f3b95bfef0f8487aa19915da0c6
-SHA512 (pytest_httpx-0.32.0.tar.gz) = fed3b83e4b3162f1500f3a591650aca5a0c09a1a640c5718ae00d4a3e3e9df8b6a90ec4cc1a1e77b6d2be7de80dec8fe69d8fb601de164c7ad84322acc1eb7d0
-Size (pytest_httpx-0.32.0.tar.gz) = 43824 bytes
+BLAKE2s (pytest_httpx-0.33.0.tar.gz) = 243251707daced4e00f84c5ac05b60acf38e21ee66a373206b87849186974979
+SHA512 (pytest_httpx-0.33.0.tar.gz) = 96e3b5e0264f61644ed22fc809f35d0b2b255aa2ba75a5bf33d165c35276f2b731689b70cfbab5b5c901b1be4ff59c4b21704f8b15453582a6095611380830c8
+Size (pytest_httpx-0.33.0.tar.gz) = 51708 bytes



Home | Main Index | Thread Index | Old Index