ports/144544: [NEW PORT] devel/py26-fudge: Fudge is a Python module for using fake objects to test real ones
Yi-Huan Chan
yhchan at csie.nctu.edu.tw
Mon Mar 8 06:10:01 UTC 2010
>Number: 144544
>Category: ports
>Synopsis: [NEW PORT] devel/py26-fudge: Fudge is a Python module for using fake objects to test real ones
>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: Mon Mar 08 06:10:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Yi-Huan Chan
>Release: FreeBSD 8.0-STABLE amd64
>Organization:
TrendMicro
>Environment:
System: FreeBSD hubert.tw 8.0-STABLE FreeBSD 8.0-STABLE #5: Sun Feb 21 20:09:48 CST 2010
>Description:
Fudge is a Python module for using fake objects (mocks, stubs, etc) to test
real ones.
This module is designed for two specific situations:
* Replace an object
o Temporarily return a canned value for a method or allow a method
to be called without affect.
* Ensure an object is used correctly
o Declare expectations about what methods should be called and what
arguments should be sent.
Fudge was inspired by Mocha which is a simpler version of jMock. But unlike
Mocha, Fudge does not automatically hijack real objects; you explicitly patch
them in your test setup. And unlike jMock, Fudge is only as strict about
expectations as you want it to be. If you just want to expect a method call
without worrying about its arguments or the type of the arguments then you
can.
WWW: http://farmdev.com/projects/fudge/
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:
--- py26-fudge-0.9.4.shar begins here ---
# 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-fudge
# py-fudge/pkg-plist
# py-fudge/pkg-descr
# py-fudge/distinfo
# py-fudge/Makefile
#
echo c - py-fudge
mkdir -p py-fudge > /dev/null 2>&1
echo x - py-fudge/pkg-plist
sed 's/^X//' >py-fudge/pkg-plist << '03b87ce16d907e5485a1b5e05e8287b5'
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
03b87ce16d907e5485a1b5e05e8287b5
echo x - py-fudge/pkg-descr
sed 's/^X//' >py-fudge/pkg-descr << '33cbd0abc0157fc93200e3caa9d45168'
XFudge is a Python module for using fake objects (mocks, stubs, etc) to test
Xreal ones.
X
XThis module is designed for two specific situations:
X * Replace an object
X o Temporarily return a canned value for a method or allow a method
X to be called without affect.
X * Ensure an object is used correctly
X o Declare expectations about what methods should be called and what
X arguments should be sent.
X
XFudge was inspired by Mocha which is a simpler version of jMock. But unlike
XMocha, Fudge does not automatically hijack real objects; you explicitly patch
Xthem in your test setup. And unlike jMock, Fudge is only as strict about
Xexpectations as you want it to be. If you just want to expect a method call
Xwithout worrying about its arguments or the type of the arguments then you
Xcan.
X
XWWW: http://farmdev.com/projects/fudge/
33cbd0abc0157fc93200e3caa9d45168
echo x - py-fudge/distinfo
sed 's/^X//' >py-fudge/distinfo << 'd6ff84a18dcd1ffb19ba8c87030a0292'
XMD5 (fudge-0.9.4.tar.gz) = 5dd525ad3f8e138100e6f6f4f3a4c678
XSHA256 (fudge-0.9.4.tar.gz) = 7c8cf89e8ca1f2923ef5e139e9a37d347a135fb0161275b946a4fe5b4d17520f
XSIZE (fudge-0.9.4.tar.gz) = 80488
d6ff84a18dcd1ffb19ba8c87030a0292
echo x - py-fudge/Makefile
sed 's/^X//' >py-fudge/Makefile << '9328f36cfb82b8c3768fdb90da8d0eae'
X# New ports collection makefile for: fudge
X# Date created: 08 Mar 2010
X# Whom: Yi-Huan Chan <yhchan at csie.nctu.edu.tw>
X#
X# $FreeBSD$
X#
X
XPORTNAME= fudge
XPORTVERSION= 0.9.4
XCATEGORIES= devel python
XMASTER_SITES= CHEESESHOP
XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
X
XMAINTAINER= yhchan at csie.nctu.edu.tw
XCOMMENT= Fudge is a Python module for using fake objects to test real ones
X
XUSE_PYTHON= 2.4+
XUSE_PYDISTUTILS= easy_install
X
X.include <bsd.port.mk>
9328f36cfb82b8c3768fdb90da8d0eae
exit
--- py26-fudge-0.9.4.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list