ports/148437: New port: devel/py-mock Mock unit tests for Python

Jesse Kempf jkempf at davisvision.com
Wed Jul 7 21:20:02 UTC 2010


>Number:         148437
>Category:       ports
>Synopsis:       New port: devel/py-mock Mock unit tests for Python
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 07 21:20:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Jesse Kempf
>Release:        FreeBSD 7.2
>Organization:
>Environment:
FreeBSD waffle.davisvision.com 7.2-STABLE FreeBSD 7.2-STABLE #1: Mon Nov 23 08:52:01 EST 2009     jkempf at waffle.davisvision.com:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
A Python Mocking and Patching Library for Testing

mock is a Python module that provides a core Mock class. It is intended to
reduce the need for creating a host of trivial 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.

WWW:    http://pypi.python.org/pypi/mock

>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	py-mock
#	py-mock/pkg-descr
#	py-mock/pkg-plist
#	py-mock/Makefile
#	py-mock/distinfo
#
echo c - py-mock
mkdir -p py-mock > /dev/null 2>&1
echo x - py-mock/pkg-descr
sed 's/^X//' >py-mock/pkg-descr << '4e14dd15319d638e146c0a8db9d76513'
XA Python Mocking and Patching Library for Testing
X
Xmock is a Python module that provides a core Mock class. It is intended to
Xreduce the need for creating a host of trivial stubs throughout your test suite.
XAfter performing an action, you can make assertions about which methods /
Xattributes were used and arguments they were called with. You can also specify
Xreturn values and set needed attributes in the normal way.
X
XWWW:	http://pypi.python.org/pypi/mock
4e14dd15319d638e146c0a8db9d76513
echo x - py-mock/pkg-plist
sed 's/^X//' >py-mock/pkg-plist << '81fdeb0415d8bd96c48b6cedffb81cc3'
X%%PYTHON_SITELIBDIR%%/mock.py
X%%PYTHON_SITELIBDIR%%/mock.pyc
X%%PYTHON_SITELIBDIR%%/mock.pyo
X at dirrmtry %%PYTHON_SITELIBDIR%%
81fdeb0415d8bd96c48b6cedffb81cc3
echo x - py-mock/Makefile
sed 's/^X//' >py-mock/Makefile << 'c714acdcae884a1065dd8d939ee74673'
X# New ports collection makefile for: mock
X# Date created: 7 Jul 2010
X# Whom:			jessekempf at gmail.com
X# $FreeBSD$
X#
X
XPORTNAME= mock
XPORTVERSION= 0.6.0
XCATEGORIES= devel python
XMASTER_SITES= CHEESESHOP
XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
X
XMAINTAINER= jessekempf at gmail.com
XCOMMENT= Mock unit tests for Python
X
XUSE_PYTHON= yes
XUSE_PYDISTUTILS= yes
XPYDISTUTILS_PKGNAME = mock
X
X.include <bsd.port.mk>
c714acdcae884a1065dd8d939ee74673
echo x - py-mock/distinfo
sed 's/^X//' >py-mock/distinfo << '4d7ace9f028f31c8c1e683086eb44f06'
XMD5 (mock-0.6.0.tar.gz) = a52c791ebd454a196e1e57b43b493191
XSHA256 (mock-0.6.0.tar.gz) = 739035ceb9cdf5b4f183ea449e59879bc9a6bb4633459dca5f8d06428ebc3d41
XSIZE (mock-0.6.0.tar.gz) = 3143
4d7ace9f028f31c8c1e683086eb44f06
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list