diff options
author | gdt <gdt@pkgsrc.org> | 2011-01-29 14:53:14 +0000 |
---|---|---|
committer | gdt <gdt@pkgsrc.org> | 2011-01-29 14:53:14 +0000 |
commit | f03a179bd58cf53c4925c2cf2d241475ecf3a12f (patch) | |
tree | 43a58907f5434abc7b19e297b49bffc609630b73 /devel/py-mock | |
parent | eacda2a0fa704168f725e28a2c81a53ae9d9eb0a (diff) | |
download | pkgsrc-f03a179bd58cf53c4925c2cf2d241475ecf3a12f.tar.gz |
Import py26-mock-0.7.0b4 as devel/py-mock.
mock is a Python module that provides a core Mock class. It removes
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.
Diffstat (limited to 'devel/py-mock')
-rw-r--r-- | devel/py-mock/DESCR | 6 | ||||
-rw-r--r-- | devel/py-mock/Makefile | 19 | ||||
-rw-r--r-- | devel/py-mock/PLIST | 8 | ||||
-rw-r--r-- | devel/py-mock/distinfo | 5 |
4 files changed, 38 insertions, 0 deletions
diff --git a/devel/py-mock/DESCR b/devel/py-mock/DESCR new file mode 100644 index 00000000000..0b583770be4 --- /dev/null +++ b/devel/py-mock/DESCR @@ -0,0 +1,6 @@ +mock is a Python module that provides a core Mock class. It removes +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. diff --git a/devel/py-mock/Makefile b/devel/py-mock/Makefile new file mode 100644 index 00000000000..cd16dcd4e6d --- /dev/null +++ b/devel/py-mock/Makefile @@ -0,0 +1,19 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/01/29 14:53:14 gdt Exp $ +# + +DISTNAME= mock-0.7.0b4 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= devel +MASTER_SITES= http://pypi.python.org/packages/source/m/mock/ + +MAINTAINER= gdt@ir.bbn.com +HOMEPAGE= http://pypi.python.org/pypi/mock +COMMENT= Python testing framework +LICENSE= gnu-gpl-v2 + +PKG_DESTDIR_SUPPORT= user-destdir + +USE_LANGUAGES= # none + +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/py-mock/PLIST b/devel/py-mock/PLIST new file mode 100644 index 00000000000..70522aca8b4 --- /dev/null +++ b/devel/py-mock/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2011/01/29 14:53:14 gdt Exp $ +${PYSITELIB}/${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/mock.py +${PYSITELIB}/mock.pyc +${PYSITELIB}/mock.pyo diff --git a/devel/py-mock/distinfo b/devel/py-mock/distinfo new file mode 100644 index 00000000000..43f5be5e87e --- /dev/null +++ b/devel/py-mock/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2011/01/29 14:53:14 gdt Exp $ + +SHA1 (mock-0.7.0b4.tar.gz) = effb4048d7b32dc8ebc0d9bc45f24600a03aedfb +RMD160 (mock-0.7.0b4.tar.gz) = 63ef286883fdd84fd692e82e07343dd7f9596ffc +Size (mock-0.7.0b4.tar.gz) = 270735 bytes |