diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2022-04-20 15:20:04 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2022-04-21 10:58:40 +0000 |
commit | 930867e807d0e7c292363a10662eaa03728ac2d1 (patch) | |
tree | d718317469fcd7f0cbf46511cbabe8b82bf8777f /databases/py-fakeredis | |
parent | 1e916d7f46c2cc1d7ed983adaf91934bb78d3259 (diff) | |
download | ports-930867e807d0e7c292363a10662eaa03728ac2d1.tar.gz ports-930867e807d0e7c292363a10662eaa03728ac2d1.zip |
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
Diffstat (limited to 'databases/py-fakeredis')
-rw-r--r-- | databases/py-fakeredis/Makefile | 15 |
1 files 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> |