mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 02:46:27 -04:00
[NEW] devel/py-pytest-localserver: Py.test Plugin to test server connections locally
pytest-localserver is a plugin for the pytest testing framework which enables you to test server connections locally. Sometimes monkeypatching urllib2.urlopen() just does not cut it, for instance if you work with urllib2.Request, define your own openers/handlers or work with httplib. In these cases it may come in handy to have an HTTP server running locally which behaves just like the real thing. Well, look no further! WWW: https://bitbucket.org/pytest-dev/pytest-localserver/
This commit is contained in:
parent
a589fb105b
commit
1bcaa68832
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=409576
4 changed files with 42 additions and 0 deletions
|
@ -4264,6 +4264,7 @@
|
|||
SUBDIR += py-pytest
|
||||
SUBDIR += py-pytest-cache
|
||||
SUBDIR += py-pytest-capturelog
|
||||
SUBDIR += py-pytest-localserver
|
||||
SUBDIR += py-pytest-runner
|
||||
SUBDIR += py-pytest-timeout
|
||||
SUBDIR += py-pytest-xdist
|
||||
|
|
29
devel/py-pytest-localserver/Makefile
Normal file
29
devel/py-pytest-localserver/Makefile
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= pytest-localserver
|
||||
PORTVERSION= 0.3.5
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
||||
MAINTAINER= koobs@FreeBSD.org
|
||||
COMMENT= Py.test Plugin to test server connections locally
|
||||
|
||||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest \
|
||||
${PYTHON_PKGNAMEPREFIX}werkzeug>=0.10:${PORTSDIR}/www/py-werkzeug
|
||||
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six \
|
||||
${PYTHON_PKGNAMEPREFIX}requests>0:${PORTSDIR}/www/py-requests
|
||||
|
||||
USES= python
|
||||
USE_PYTHON= autoplist distutils
|
||||
|
||||
NO_ARCH= yes
|
||||
|
||||
do-test:
|
||||
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/py-pytest-localserver/distinfo
Normal file
2
devel/py-pytest-localserver/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (pytest-localserver-0.3.5.tar.gz) = 97a8db7f530afdd009513ebdd86731b51e866fad82595bf92f456d93e5d57837
|
||||
SIZE (pytest-localserver-0.3.5.tar.gz) = 18856
|
10
devel/py-pytest-localserver/pkg-descr
Normal file
10
devel/py-pytest-localserver/pkg-descr
Normal file
|
@ -0,0 +1,10 @@
|
|||
pytest-localserver is a plugin for the pytest testing framework which
|
||||
enables you to test server connections locally.
|
||||
|
||||
Sometimes monkeypatching urllib2.urlopen() just does not cut it, for
|
||||
instance if you work with urllib2.Request, define your own
|
||||
openers/handlers or work with httplib. In these cases it may come in
|
||||
handy to have an HTTP server running locally which behaves just like
|
||||
the real thing. Well, look no further!
|
||||
|
||||
WWW: https://bitbucket.org/pytest-dev/pytest-localserver/
|
Loading…
Add table
Reference in a new issue