1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

[NEW] devel/py-pytest-flask: Set of py.test fixtures to test Flask applications

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

PR:		242786
Submitted by:	Goran Mekić <meka tilda center>
This commit is contained in:
Kubilay Kocak 2020-02-17 09:05:27 +00:00
parent 3e8fcdaec2
commit b19a4acbe5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=526354
4 changed files with 39 additions and 0 deletions

View File

@ -4848,6 +4848,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

View File

@ -0,0 +1,31 @@
# $FreeBSD$
PORTNAME= pytest-flask
PORTVERSION= 0.15.1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= meka@tilda.center
COMMENT= Set of py.test fixtures to test Flask applications
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Flask>=0:www/py-flask@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}werkzeug>=0.7:www/py-werkzeug@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>=3.6:devel/py-pytest@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR}
USES= python
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 <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1581929217
SHA256 (pytest-flask-0.15.1.tar.gz) = cbd8c5b9f8f1b83e9c159ac4294964807c4934317a5fba181739ac15e1b823e6
SIZE (pytest-flask-0.15.1.tar.gz) = 24207

View File

@ -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