Import WebTest 1.1

This wraps any WSGI application and makes it easy to send test
requests to that application, without starting up an HTTP server.
This provides convenient full-stack testing of applications written
with any WSGI-compatible framework.

martynas@ ok
This commit is contained in:
fgsch 2009-03-30 00:00:37 +00:00
parent df48881921
commit 0addcd0b67
4 changed files with 66 additions and 0 deletions

38
www/py-webtest/Makefile Normal file
View File

@ -0,0 +1,38 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/03/30 00:00:37 fgsch Exp $
COMMENT = helper to test wsgi applications
MODPY_EGG_VERSION = 1.1
DISTNAME = WebTest-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME:L}
CATEGORIES = www devel
HOMEPAGE = http://pythonpaste.org/webtest/
# MIT
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = ${MASTER_SITE_PYPI:=W/WebTest/}
MODULES = lang/python
RUN_DEPENDS = ::www/py-webob
REGRESS_DEPENDS = ${RUN_DEPENDS} \
::devel/py-dtopt \
::devel/py-nose
MODPY_SETUPTOOLS = Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-webtest
${INSTALL_DATA} ${WRKSRC}/docs/index.txt \
${PREFIX}/share/doc/py-webtest
do-regress:
cd ${WRKSRC} && ${LOCALBASE}/bin/nosetests lib tests
.include <bsd.port.mk>

5
www/py-webtest/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (WebTest-1.1.tar.gz) = 8q39D212a7IhT7Gh89sDzA==
RMD160 (WebTest-1.1.tar.gz) = WgkUOenU0pxC8nV/qQVHG/iF0uM=
SHA1 (WebTest-1.1.tar.gz) = WqnIcPHYrncR8EGWE3cPiJLbZMs=
SHA256 (WebTest-1.1.tar.gz) = eAMN797Zl8SN71bSaBNuuRzM5B29nXZ7CDCL9jgc/v0=
SIZE (WebTest-1.1.tar.gz) = 31705

5
www/py-webtest/pkg/DESCR Normal file
View File

@ -0,0 +1,5 @@
This wraps any WSGI application and makes it easy to send test
requests to that application, without starting up an HTTP server.
This provides convenient full-stack testing of applications written
with any WSGI-compatible framework.

18
www/py-webtest/pkg/PLIST Normal file
View File

@ -0,0 +1,18 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/03/30 00:00:37 fgsch Exp $
lib/python${MODPY_VERSION}/site-packages/WebTest-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/WebTest-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/WebTest-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/WebTest-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/WebTest-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/entry_points.txt
lib/python${MODPY_VERSION}/site-packages/WebTest-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt
lib/python${MODPY_VERSION}/site-packages/WebTest-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/WebTest-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/zip-safe
lib/python${MODPY_VERSION}/site-packages/webtest/
lib/python${MODPY_VERSION}/site-packages/webtest/__init__.py
lib/python${MODPY_VERSION}/site-packages/webtest/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/webtest/debugapp.py
lib/python${MODPY_VERSION}/site-packages/webtest/debugapp.pyc
lib/python${MODPY_VERSION}/site-packages/webtest/lint.py
lib/python${MODPY_VERSION}/site-packages/webtest/lint.pyc
share/doc/py-webtest/
share/doc/py-webtest/index.txt