@@ -, +, @@ Add pytest-flask --- b/devel/Makefile +++ b/devel/Makefile @@ -4900,6 +4900,7 @@ SUBDIR += py-pytest-fixture-config SUBDIR += py-pytest-flake8 SUBDIR += py-pytest-flakes + SUBDIR += py-pytest-flask SUBDIR += py-pytest-forked SUBDIR += py-pytest-helpers-namespace SUBDIR += py-pytest-isort --- /dev/null +++ b/devel/py-pytest-flask/Makefile @@ -0,0 +1,33 @@ +# $FreeBSD$ + +PORTNAME= pytest-flask +PORTVERSION= 0.15.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= meka@tilda.center +COMMENT= Set of pytest fixtures for Flask extensions and applications + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Flask>=0:www/py-flask@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}werkzeug>=0:www/py-werkzeug@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \ + pylint${PYTHON_PKGNAMESUFFIX}>=0:devel/pylint@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-pep8>=0:devel/py-pytest-pep8@${PY_FLAVOR} + +USES= python:3.5+ +USE_PYTHON= autoplist concurrent distutils + +TEST_ENV= PYTHONPATH=${WRKSRC}/src + +NO_ARCH= yes + +do-test: + cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts= + +.include --- /dev/null +++ b/devel/py-pytest-flask/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1576975175 +SHA256 (pytest-flask-0.15.0.tar.gz) = d874781b622210d8c5d8061cdb091cb059fcb12203125110bd8e6f9256ccbf49 +SIZE (pytest-flask-0.15.0.tar.gz) = 24576 --- /dev/null +++ b/devel/py-pytest-flask/pkg-descr @@ -0,0 +1,4 @@ +An extension of pytest test runner which provides a set of useful tools to +simplify testing and development of the Flask extensions and applications. + +WWW: https://github.com/pytest-dev/pytest-flask