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:           Wed Oct  9 20:14:17 UTC 2024

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

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

0.32.0

Added
- The following option is now available:
  - `can_send_already_matched_responses` (boolean), defaulting to `False`.
- Assertion failure message in case of unmatched responses is now linking documentation on how to deactivate the check.
- Assertion failure message in case of unmatched requests is now linking documentation on how to deactivate the check.
- `httpx.TimeoutException` message issued in case of unmatched request is now linking documentation on how to reuse responses (in case some responses are already matched).

Fixed
- Documentation now clearly state the risks associated with changing the default options.
- Assertion failure message in case of unmatched requests at teardown is now describing requests in a more user-friendly way.
- Assertion failure message in case of unmatched requests at teardown is now prefixing requests with `- ` to highlight the fact that this is a list, preventing misapprehension in case only one 
element exists.
- Assertion failure message in case of unmatched responses at teardown is now prefixing responses with `- ` to highlight the fact that this is a list, preventing misapprehension in case only one 
element exists.
- `httpx.TimeoutException` message issued in case of unmatched request is now prefixing available responses with `- ` to highlight the fact that this is a list, preventing misapprehension in case 
only one element exists.
- `httpx.TimeoutException` message issued in case of unmatched request is now listing unmatched responses (in registration order) before already matched one (still in registration order).
  - The incentive behind this change is to help identify a potential mismatch faster as the first unmatched response is the most likely to be the one expected to match.
- Response description in failure messages (`httpx.TimeoutException` message issued in case of unmatched request or assertion failure message in case of unmatched responses at teardown) is now 
displaying if the response was already matched or not and less misleading in it's phrasing about what it can match (a single request by default).

Changed
- Last registered matching response will not be reused by default anymore in case all matching responses have already been sent.
  - This behavior can be changed thanks to the new `pytest.mark.httpx_mock(can_send_already_matched_responses=True)` option.
  - The incentive behind this change is to spot regression if a request was issued more than the expected number of times.
- `HTTPXMock` class was only exposed for type hinting purpose. This is now explained in the class docstring.
  - As a result this is the last time a change to `__init__` signature will be documented and considered a breaking change.
  - Future changes will not be documented and will be considered as internal refactoring not worth a version bump.
  - `__init__` now expects one parameter, the newly introduced (since [0.31.0]) options.
- `HTTPXMockOptions` class was never intended to be exposed and is now marked as private.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 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.12 pkgsrc/www/py-test-httpx/Makefile:1.13
--- pkgsrc/www/py-test-httpx/Makefile:1.12      Mon Sep 23 08:12:12 2024
+++ pkgsrc/www/py-test-httpx/Makefile   Wed Oct  9 20:14:17 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.12 2024/09/23 08:12:12 adam Exp $
+# $NetBSD: Makefile,v 1.13 2024/10/09 20:14:17 adam Exp $
 
-DISTNAME=      pytest_httpx-0.31.1
+DISTNAME=      pytest_httpx-0.32.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/^py//:S/_/-/}
 CATEGORIES=    www python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest-httpx/}
@@ -20,7 +20,5 @@ TEST_DEPENDS+=        ${PYPKGPREFIX}-test-cov>=
 
 USE_LANGUAGES= # none
 
-PYTHON_VERSIONS_INCOMPATIBLE=  38
-
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"
Index: pkgsrc/www/py-test-httpx/distinfo
diff -u pkgsrc/www/py-test-httpx/distinfo:1.12 pkgsrc/www/py-test-httpx/distinfo:1.13
--- pkgsrc/www/py-test-httpx/distinfo:1.12      Mon Sep 23 08:12:12 2024
+++ pkgsrc/www/py-test-httpx/distinfo   Wed Oct  9 20:14:17 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.12 2024/09/23 08:12:12 adam Exp $
+$NetBSD: distinfo,v 1.13 2024/10/09 20:14:17 adam Exp $
 
-BLAKE2s (pytest_httpx-0.31.1.tar.gz) = aaefd56f093f3e8459b15f94123345ca9c18a3fdef4f1642131bbec3b22c865a
-SHA512 (pytest_httpx-0.31.1.tar.gz) = bd8a90bc3989a948a8420cd57a14cee7933b1207430286d8814c28c3f65238d6ea0abb43e9ed60fad06b40855d90438c62c57ba91c24590bcccd1698e0df1edf
-Size (pytest_httpx-0.31.1.tar.gz) = 38816 bytes
+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



Home | Main Index | Thread Index | Old Index