git: 930867e807d0 - main - databases/py-fakeredis: fix tests

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Thu, 21 Apr 2022 10:59:20 UTC
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=930867e807d0e7c292363a10662eaa03728ac2d1

commit 930867e807d0e7c292363a10662eaa03728ac2d1
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-04-20 15:20:04 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2022-04-21 10:58:40 +0000

    databases/py-fakeredis: fix tests
    
    - Switch to recent pytest
    - Switch to USES=pytest
    - Add missing depends
    - Fix incorrect way of running tests
    
    Approved by:    portmgr blanket
---
 databases/py-fakeredis/Makefile | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/databases/py-fakeredis/Makefile b/databases/py-fakeredis/Makefile
index 172f747272c0..58116f134233 100644
--- a/databases/py-fakeredis/Makefile
+++ b/databases/py-fakeredis/Makefile
@@ -14,10 +14,14 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR}
 		${PYTHON_PKGNAMEPREFIX}redis>=0<4.2.0:databases/py-redis@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}six>=1.12:devel/py-six@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}sortedcontainers>=0:devel/py-sortedcontainers@${PY_FLAVOR}
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest4<5.0,1:devel/py-pytest4@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pytest4-cov<3.0:devel/py-pytest4-cov@${PY_FLAVOR}
-
-USES=		python:3.6+
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest-cov<3.0:devel/py-pytest-cov@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=0:devel/py-pytest-asyncio@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest-mock>=0:devel/py-pytest-mock@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}aioredis>=0:databases/py-aioredis@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}hypothesis>=0:devel/py-hypothesis@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}lupa>=0:lang/py-lupa@${PY_FLAVOR}
+
+USES=		python:3.6+ pytest
 USE_PYTHON=	autoplist concurrent distutils
 
 NO_ARCH=	yes
@@ -29,7 +33,4 @@ LUA_DESC=	Lua support
 AIOREDIS_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}aioredis>=0:databases/py-aioredis@${PY_FLAVOR}
 LUA_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}lupa>=0:lang/py-lupa@${PY_FLAVOR}
 
-do-test:
-	cd ${WRKSRC} && ${PYTHON_CMD} test_fakeredis.py
-
 .include <bsd.port.mk>