8890701049
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.
22 lines
763 B
Makefile
22 lines
763 B
Makefile
# $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"
|