mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
devel/py-pytest-recording: update 0.13.2 → 0.13.3
Reported by: portscout
This commit is contained in:
parent
302a622e2a
commit
498e1be887
3 changed files with 34 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
||||||
PORTNAME= pytest-recording
|
PORTNAME= pytest-recording
|
||||||
DISTVERSION= 0.13.2
|
DISTVERSION= 0.13.3
|
||||||
CATEGORIES= devel python
|
CATEGORIES= devel python
|
||||||
MASTER_SITES= PYPI
|
MASTER_SITES= PYPI
|
||||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
@ -14,6 +14,10 @@ LICENSE= MIT
|
||||||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
|
||||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
|
||||||
${PYTHON_PKGNAMEPREFIX}vcrpy>=2.0.1:devel/py-vcrpy@${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
|
USES= python
|
||||||
USE_PYTHON= pep517 autoplist pytest
|
USE_PYTHON= pep517 autoplist pytest
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
TIMESTAMP = 1731270780
|
TIMESTAMP = 1745556086
|
||||||
SHA256 (pytest_recording-0.13.2.tar.gz) = 000c3babbb466681457fd65b723427c1779a0c6c17d9e381c3142a701e124877
|
SHA256 (pytest_recording-0.13.3.tar.gz) = dd018421a956ecc45f112c051b1e323b40d029879b1062853df45b05c6098310
|
||||||
SIZE (pytest_recording-0.13.2.tar.gz) = 25270
|
SIZE (pytest_recording-0.13.3.tar.gz) = 26228
|
||||||
|
|
|
@ -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
|
Loading…
Add table
Reference in a new issue