c39f5dc168
the need to create a host of stubs throughout your test suite. After performing an action, you can make assertions about which methods / attributes were used and arguments they were called with. You can also specify return values and set needed attributes in the normal way. The mock module also provides utility functions / objects to assist with testing, particularly monkey patching. ok ajacoutot@
31 lines
678 B
Makefile
31 lines
678 B
Makefile
# $OpenBSD: Makefile,v 1.1.1.1 2011/04/18 15:10:14 eric Exp $
|
|
|
|
COMMENT= python mocking and patching library for testing
|
|
|
|
MODPY_EGG_VERSION= 0.7.0
|
|
DISTNAME= mock-${MODPY_EGG_VERSION}
|
|
PKGNAME= py-${DISTNAME}
|
|
CATEGORIES= devel
|
|
|
|
HOMEPAGE= http://www.voidspace.org.uk/python/mock/
|
|
|
|
MAINTAINER= Eric Faurot <eric@openbsd.org>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=m/mock/}
|
|
|
|
MODULES= lang/python
|
|
|
|
MODPY_SETUPTOOLS= Yes
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-mock
|
|
cd ${WRKSRC}/html/ && pax -rw * ${PREFIX}/share/doc/py-mock/
|
|
|
|
.include <bsd.port.mk>
|