git: 57e80d732ada - main - www/py-aiohttp: fix (some) tests
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Mar 2025 19:02:15 UTC
The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=57e80d732ada0266a2f2cc4e4f3d23880e4f4747 commit 57e80d732ada0266a2f2cc4e4f3d23880e4f4747 Author: Dmitry Marakasov <amdmi3@FreeBSD.org> AuthorDate: 2025-03-18 17:59:16 +0000 Commit: Dmitry Marakasov <amdmi3@FreeBSD.org> CommitDate: 2025-03-18 18:52:22 +0000 www/py-aiohttp: fix (some) tests - Add missing TEST_DEPENDS - Skip a test which depend on python_on_whales which is not (and unlikely to be) available on FreeBSD Approved by: portmgr blanket --- www/py-aiohttp/Makefile | 4 +++- www/py-aiohttp/files/patch-tests_autobahn_test__autobahn.py | 11 +++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/www/py-aiohttp/Makefile b/www/py-aiohttp/Makefile index e4c9821f6523..1fe5e2c83e1e 100644 --- a/www/py-aiohttp/Makefile +++ b/www/py-aiohttp/Makefile @@ -26,7 +26,9 @@ TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}aiodns>=1.1:dns/py-aiodns@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}brotli>=0:archivers/py-brotli@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}freezegun>=0:devel/py-freezegun@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}gunicorn>=0:www/py-gunicorn@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}re-assert>=0:devel/py-re-assert@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}re-assert>=0:devel/py-re-assert@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-mock>=0:devel/py-pytest-mock@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-codspeed>=0:devel/py-pytest-codspeed@${PY_FLAVOR} USES= cpe python:3.9+ USE_PYTHON= autoplist concurrent cython pep517 pytest diff --git a/www/py-aiohttp/files/patch-tests_autobahn_test__autobahn.py b/www/py-aiohttp/files/patch-tests_autobahn_test__autobahn.py new file mode 100644 index 000000000000..971150f1ccfe --- /dev/null +++ b/www/py-aiohttp/files/patch-tests_autobahn_test__autobahn.py @@ -0,0 +1,11 @@ +--- tests/autobahn/test_autobahn.py.orig 2025-02-24 15:18:07 UTC ++++ tests/autobahn/test_autobahn.py +@@ -5,7 +5,7 @@ import pytest + from typing import Any, Dict, Generator, List + + import pytest +-import python_on_whales ++python_on_whales = pytest.importorskip("python_on_whales") + from pytest import TempPathFactory + +