aboutsummaryrefslogtreecommitdiff
path: root/devel/py-mock
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2010-07-09 20:53:12 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2010-07-09 20:53:12 +0000
commitfd1aff9d409ceadb4ebfa2a8638df3aa40cab08f (patch)
tree152c8929c26aff169d938572356cd0cd20aeb222 /devel/py-mock
parent27a4ddb9c2c6adf0b2d0fcec32ec51f989bddd4a (diff)
downloadports-fd1aff9d409ceadb4ebfa2a8638df3aa40cab08f.tar.gz
ports-fd1aff9d409ceadb4ebfa2a8638df3aa40cab08f.zip
Notes
Diffstat (limited to 'devel/py-mock')
-rw-r--r--devel/py-mock/Makefile19
-rw-r--r--devel/py-mock/distinfo3
-rw-r--r--devel/py-mock/pkg-descr9
-rw-r--r--devel/py-mock/pkg-plist4
4 files changed, 35 insertions, 0 deletions
diff --git a/devel/py-mock/Makefile b/devel/py-mock/Makefile
new file mode 100644
index 000000000000..b224e6dfe41a
--- /dev/null
+++ b/devel/py-mock/Makefile
@@ -0,0 +1,19 @@
+# New ports collection makefile for: mock
+# Date created: 7 Jul 2010
+# Whom: jessekempf@gmail.com
+# $FreeBSD$
+#
+
+PORTNAME= mock
+PORTVERSION= 0.6.0
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= jessekempf@gmail.com
+COMMENT= Mock unit tests for Python
+
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-mock/distinfo b/devel/py-mock/distinfo
new file mode 100644
index 000000000000..0a2bb7cc4183
--- /dev/null
+++ b/devel/py-mock/distinfo
@@ -0,0 +1,3 @@
+MD5 (mock-0.6.0.tar.gz) = a52c791ebd454a196e1e57b43b493191
+SHA256 (mock-0.6.0.tar.gz) = 739035ceb9cdf5b4f183ea449e59879bc9a6bb4633459dca5f8d06428ebc3d41
+SIZE (mock-0.6.0.tar.gz) = 3143
diff --git a/devel/py-mock/pkg-descr b/devel/py-mock/pkg-descr
new file mode 100644
index 000000000000..5ace49ff506f
--- /dev/null
+++ b/devel/py-mock/pkg-descr
@@ -0,0 +1,9 @@
+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
diff --git a/devel/py-mock/pkg-plist b/devel/py-mock/pkg-plist
new file mode 100644
index 000000000000..88647849555a
--- /dev/null
+++ b/devel/py-mock/pkg-plist
@@ -0,0 +1,4 @@
+%%PYTHON_SITELIBDIR%%/mock.py
+%%PYTHON_SITELIBDIR%%/mock.pyc
+%%PYTHON_SITELIBDIR%%/mock.pyo
+@dirrmtry %%PYTHON_SITELIBDIR%%