diff options
author | wiz <wiz> | 2016-01-02 10:46:01 +0000 |
---|---|---|
committer | wiz <wiz> | 2016-01-02 10:46:01 +0000 |
commit | a194dd7ae20e57f476ec30d1f10abf4a2c6bda52 (patch) | |
tree | e18e21a883d227fbeb89cee5207dbbefcaeb5e5b /www | |
parent | b8aff337a8733579d67a6984d3127df1b6da72d3 (diff) | |
download | pkgsrc-a194dd7ae20e57f476ec30d1f10abf4a2c6bda52.tar.gz |
Import py-test-httpbin-0.2.0 as www/py-test-httpbin.
httpbin is an amazing web service for testing HTTP libraries. It
has several great endpoints that can test pretty much everything
you need in a HTTP library. The only problem is: maybe you don't
want to wait for your tests to travel across the Internet and back
to make assertions against a remote web service (speed), and maybe
you want to work offline (convenience).
Enter pytest-httpbin. Pytest-httpbin creates a pytest fixture that
is dependency-injected into your tests. It automatically starts up
a HTTP server in a separate thread running httpbin and provides
your test with the URL in the fixture.
Diffstat (limited to 'www')
-rw-r--r-- | www/py-test-httpbin/DESCR | 11 | ||||
-rw-r--r-- | www/py-test-httpbin/Makefile | 22 | ||||
-rw-r--r-- | www/py-test-httpbin/PLIST | 25 | ||||
-rw-r--r-- | www/py-test-httpbin/distinfo | 6 |
4 files changed, 64 insertions, 0 deletions
diff --git a/www/py-test-httpbin/DESCR b/www/py-test-httpbin/DESCR new file mode 100644 index 00000000000..0b8eddc61c7 --- /dev/null +++ b/www/py-test-httpbin/DESCR @@ -0,0 +1,11 @@ +httpbin is an amazing web service for testing HTTP libraries. It +has several great endpoints that can test pretty much everything +you need in a HTTP library. The only problem is: maybe you don't +want to wait for your tests to travel across the Internet and back +to make assertions against a remote web service (speed), and maybe +you want to work offline (convenience). + +Enter pytest-httpbin. Pytest-httpbin creates a pytest fixture that +is dependency-injected into your tests. It automatically starts up +a HTTP server in a separate thread running httpbin and provides +your test with the URL in the fixture. diff --git a/www/py-test-httpbin/Makefile b/www/py-test-httpbin/Makefile new file mode 100644 index 00000000000..b449bfeb67c --- /dev/null +++ b/www/py-test-httpbin/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 2016/01/02 10:46:01 wiz Exp $ + +DISTNAME= pytest-httpbin-0.2.0 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//} +CATEGORIES= www +MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest-httpbin/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://pypi.python.org/pypi/pytest-httpbin +COMMENT= Easily test your HTTP library against a local copy of httpbin +LICENSE= mit + +DEPENDS+= ${PYPKGPREFIX}-flask-[0-9]*:../../www/py-flask +DEPENDS+= ${PYPKGPREFIX}-decorator-[0-9]*:../../devel/py-decorator +DEPENDS+= ${PYPKGPREFIX}-httpbin-[0-9]*:../../www/py-httpbin +DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six +DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test + +USE_LANGUAGES= # none + +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/www/py-test-httpbin/PLIST b/www/py-test-httpbin/PLIST new file mode 100644 index 00000000000..7780c4dd72a --- /dev/null +++ b/www/py-test-httpbin/PLIST @@ -0,0 +1,25 @@ +@comment $NetBSD: PLIST,v 1.1 2016/01/02 10:46:01 wiz Exp $ +${PYSITELIB}/${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/${EGG_INFODIR}/entry_points.txt +${PYSITELIB}/${EGG_INFODIR}/requires.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/pytest_httpbin/__init__.py +${PYSITELIB}/pytest_httpbin/__init__.pyc +${PYSITELIB}/pytest_httpbin/__init__.pyo +${PYSITELIB}/pytest_httpbin/certs.py +${PYSITELIB}/pytest_httpbin/certs.pyc +${PYSITELIB}/pytest_httpbin/certs.pyo +${PYSITELIB}/pytest_httpbin/certs/cacert.pem +${PYSITELIB}/pytest_httpbin/certs/cert.pem +${PYSITELIB}/pytest_httpbin/certs/key.pem +${PYSITELIB}/pytest_httpbin/plugin.py +${PYSITELIB}/pytest_httpbin/plugin.pyc +${PYSITELIB}/pytest_httpbin/plugin.pyo +${PYSITELIB}/pytest_httpbin/serve.py +${PYSITELIB}/pytest_httpbin/serve.pyc +${PYSITELIB}/pytest_httpbin/serve.pyo +${PYSITELIB}/pytest_httpbin/version.py +${PYSITELIB}/pytest_httpbin/version.pyc +${PYSITELIB}/pytest_httpbin/version.pyo diff --git a/www/py-test-httpbin/distinfo b/www/py-test-httpbin/distinfo new file mode 100644 index 00000000000..f5ef0023a25 --- /dev/null +++ b/www/py-test-httpbin/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2016/01/02 10:46:01 wiz Exp $ + +SHA1 (pytest-httpbin-0.2.0.tar.gz) = ede37c09d9dd48e41fee2d0a22f6eea584bc89da +RMD160 (pytest-httpbin-0.2.0.tar.gz) = acec12de5ea854cfd287745524f4972b7af27a0f +SHA512 (pytest-httpbin-0.2.0.tar.gz) = a8e80979de59578a7cf16fa6cc08386bac9357bc8b48e34fc2a24cea18d531e61bf3c2474f8fc1b230dcd31641cb4bc960bab05e4bdbab98637c2fbf08671bfd +Size (pytest-httpbin-0.2.0.tar.gz) = 9372 bytes |