From bfd17f68cb6aa70d39eaca438b6c3711bfbe66be Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Tue, 26 Apr 2022 04:05:55 +0300 Subject: [PATCH] textproc/py-enrich: fix tests - Switch to USES=pytest - Fix depends by dropping bogus version limitation Reported by: reprise Approved by: portmgr blanket --- textproc/py-enrich/Makefile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/textproc/py-enrich/Makefile b/textproc/py-enrich/Makefile index f1fe6f9f22b0b..1b28c5524bb87 100644 --- a/textproc/py-enrich/Makefile +++ b/textproc/py-enrich/Makefile @@ -16,16 +16,12 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=3.5.0:devel/py-setuptools_ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}rich>=9.5.1:textproc/py-rich@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=3.0.5:devel/py-mock@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-cov>=2.7.1:devel/py-pytest-cov@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pytest-mock>=3.3.1:devel/py-pytest-mock@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pytest-xdist>=1.29.0:devel/py-pytest-xdist@${PY_FLAVOR} \ - ${PYTHON_PKGNAMEPREFIX}pytest>=5.4.0:devel/py-pytest@${PY_FLAVOR} + ${PYTHON_PKGNAMEPREFIX}pytest-mock>=0:devel/py-pytest-mock@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-xdist>=1.29.0:devel/py-pytest-xdist@${PY_FLAVOR} -USES= python:3.6+ +USES= python:3.6+ pytest USE_PYTHON= autoplist distutils NO_ARCH= yes -do-test: - @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest) - .include