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: Mon Sep 23 08:12:12 UTC 2024
Modified Files:
pkgsrc/www/py-test-httpx: Makefile distinfo
Log Message:
py-test-httpx: updated to 0.31.1
0.31.1
Fixed
- It is now possible to match on content provided as async iterable by the client.
0.31.0
Changed
- Tests will now fail at teardown by default if some requests were issued but were not matched.
- This behavior can be changed thanks to the new ``pytest.mark.httpx_mock(assert_all_requests_were_expected=False)`` option.
- The `httpx_mock` fixture is now configured using a marker (many thanks to [`Frazer McLean`](https://github.com/RazerM)).
```python
# Apply marker to whole module
pytestmark = pytest.mark.httpx_mock(assert_all_responses_were_requested=False)
# Or to specific tests
@pytest.mark.httpx_mock(non_mocked_hosts=[...])
def test_foo(httpx_mock):
...
```
- The following options are available:
- `assert_all_responses_were_requested` (boolean), defaulting to `True`.
- `assert_all_requests_were_expected` (boolean), defaulting to `True`.
- `non_mocked_hosts` (iterable), defaulting to an empty list, meaning all hosts are mocked.
- `httpx_mock.reset` do not expect any parameter anymore and will only reset the mock state (no assertions will be performed).
Removed
- `pytest` `7` is not supported anymore (`pytest` `8` has been out for 9 months already).
- `assert_all_responses_were_requested` fixture is not available anymore, use `pytest.mark.httpx_mock(assert_all_responses_were_requested=False)` instead.
- `non_mocked_hosts` fixture is not available anymore, use `pytest.mark.httpx_mock(non_mocked_hosts=[])` instead.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 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.11 pkgsrc/www/py-test-httpx/Makefile:1.12
--- pkgsrc/www/py-test-httpx/Makefile:1.11 Wed Feb 21 19:21:53 2024
+++ pkgsrc/www/py-test-httpx/Makefile Mon Sep 23 08:12:12 2024
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.11 2024/02/21 19:21:53 adam Exp $
+# $NetBSD: Makefile,v 1.12 2024/09/23 08:12:12 adam Exp $
-DISTNAME= pytest-httpx-0.30.0
-PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^py//}
+DISTNAME= pytest_httpx-0.31.1
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^py//:S/_/-/}
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest-httpx/}
@@ -14,13 +14,13 @@ TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools
TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
DEPENDS+= ${PYPKGPREFIX}-httpx>=0.27:../../www/py-httpx
-DEPENDS+= ${PYPKGPREFIX}-test>=7.0:../../devel/py-test
+DEPENDS+= ${PYPKGPREFIX}-test>=8.0:../../devel/py-test
TEST_DEPENDS+= ${PYPKGPREFIX}-test-asyncio>=0.23:../../devel/py-test-asyncio
TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov>=4:../../devel/py-test-cov
USE_LANGUAGES= # none
-PYTHON_VERSIONS_INCOMPATIBLE= 27 38
+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.11 pkgsrc/www/py-test-httpx/distinfo:1.12
--- pkgsrc/www/py-test-httpx/distinfo:1.11 Wed Feb 21 19:21:53 2024
+++ pkgsrc/www/py-test-httpx/distinfo Mon Sep 23 08:12:12 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.11 2024/02/21 19:21:53 adam Exp $
+$NetBSD: distinfo,v 1.12 2024/09/23 08:12:12 adam Exp $
-BLAKE2s (pytest-httpx-0.30.0.tar.gz) = 484d3ec1c997f9ec42a410586898e6bd15de0ff862d7bc60b02c7bceb3f0a76b
-SHA512 (pytest-httpx-0.30.0.tar.gz) = 6aadb544bda5003156bf9c0fa309a166636dc87aea033d9a48ee10e1e8b77e6cb52350930e97cab89cff7c10111d5e26d1d74cd33f0a6c54e34c3fb7ef72ea05
-Size (pytest-httpx-0.30.0.tar.gz) = 36959 bytes
+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
Home |
Main Index |
Thread Index |
Old Index