diff --git a/devel/py-pytest-recording/Makefile b/devel/py-pytest-recording/Makefile index 035666ad7019..49a42c9d5a59 100644 --- a/devel/py-pytest-recording/Makefile +++ b/devel/py-pytest-recording/Makefile @@ -1,5 +1,5 @@ PORTNAME= pytest-recording -DISTVERSION= 0.13.2 +DISTVERSION= 0.13.3 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -14,6 +14,10 @@ LICENSE= MIT BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}vcrpy>=2.0.1:devel/py-vcrpy@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-httpbin>=0:devel/py-pytest-httpbin@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-mock>=0:devel/py-pytest-mock@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}werkzeug>=3.1.3:www/py-werkzeug@${PY_FLAVOR} USES= python USE_PYTHON= pep517 autoplist pytest diff --git a/devel/py-pytest-recording/distinfo b/devel/py-pytest-recording/distinfo index a3d402e432dd..e0bd7af07b0b 100644 --- a/devel/py-pytest-recording/distinfo +++ b/devel/py-pytest-recording/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1731270780 -SHA256 (pytest_recording-0.13.2.tar.gz) = 000c3babbb466681457fd65b723427c1779a0c6c17d9e381c3142a701e124877 -SIZE (pytest_recording-0.13.2.tar.gz) = 25270 +TIMESTAMP = 1745556086 +SHA256 (pytest_recording-0.13.3.tar.gz) = dd018421a956ecc45f112c051b1e323b40d029879b1062853df45b05c6098310 +SIZE (pytest_recording-0.13.3.tar.gz) = 26228 diff --git a/devel/py-pytest-recording/files/patch-tests_test__blocking__network.py b/devel/py-pytest-recording/files/patch-tests_test__blocking__network.py new file mode 100644 index 000000000000..528578d5749b --- /dev/null +++ b/devel/py-pytest-recording/files/patch-tests_test__blocking__network.py @@ -0,0 +1,26 @@ +--- tests/test_blocking_network.py.orig 2025-04-25 08:03:40 UTC ++++ tests/test_blocking_network.py +@@ -1,7 +1,7 @@ from io import BytesIO + import json + import sys + from io import BytesIO +-from socket import AF_INET, AF_NETLINK, AF_UNIX, SOCK_RAW, SOCK_STREAM, socket ++from socket import AF_INET, AF_UNIX, SOCK_RAW, SOCK_STREAM, socket + + import pytest + import requests +@@ -158,14 +158,6 @@ def test_block_network_blocked_socket(): + def test_block_network_blocked_socket(): + with pytest.raises(RuntimeError, match=r"^Network is disabled$"): + call("./blocked_socket", AF_UNIX, SOCK_STREAM) +- +- +-# When not AF_UNIX, AF_INET or AF_INET6 socket is used +-# Then socket.socket.connect call is blocked, even if resource name is in the allowed list +-@pytest.mark.block_network(allowed_hosts=["./allowed_socket", "127.0.0.1", "0"]) +-def test_blocked(): +- with pytest.raises(RuntimeError, match=r"^Network is disabled$"): +- call((0, 0), AF_NETLINK, SOCK_RAW) + + + # When record is disabled