Skip to content

Commit

Permalink
www/py-httpie: implement testing
Browse files Browse the repository at this point in the history
Approved by:	portmgr blanket
  • Loading branch information
AMDmi3 committed Feb 7, 2022
1 parent dc1de40 commit 5b9111c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions www/py-httpie/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}charset-normalizer>=2.0.0:textproc/py-charse
${PYTHON_PKGNAMEPREFIX}pygments>=2.5.2:textproc/py-pygments@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests-toolbelt>=0.9.1:www/py-requests-toolbelt@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}multidict>=4.7.0:www/py-multidict@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-httpbin>=0:devel/py-pytest-httpbin@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}responses>=0:devel/py-responses@${PY_FLAVOR}

USES= cpe python:3.8+
USE_PYTHON= distutils autoplist
Expand All @@ -25,4 +28,7 @@ USE_GITHUB= yes

NO_ARCH= yes

do-test:
@cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts=

.include <bsd.port.mk>

0 comments on commit 5b9111c

Please sign in to comment.