Import py27-flexmock-0.9.7 as devel/py-flexmock.
flexmock is a testing library for Python that makes it easy to create mocks, stubs and fakes. The API is inspired by a Ruby library of the same name, but Python flexmock is not a clone of the Ruby version. It omits a number of redundancies in the Ruby flexmock API, alters some defaults, and introduces a number of Python-only features. flexmock's design focuses on simplicity and intuitiveness. This means that the API is as lean as possible, though a few convenient short-hand methods are provided to aid brevity and readability. flexmock declarations are structured to read more like English sentences than API calls, and it is possible to chain them together in any order to achieve high degree of expressiveness in a single line of code. In addition, flexmock integrates seamlessly with all major test runners to reduce even more mock-related boilerplate code.
This commit is contained in:
parent
c4b3574f7b
commit
6695617bcc
4 changed files with 44 additions and 0 deletions
18
devel/py-flexmock/DESCR
Normal file
18
devel/py-flexmock/DESCR
Normal file
|
@ -0,0 +1,18 @@
|
|||
flexmock is a testing library for Python that makes it easy to create mocks,
|
||||
stubs and fakes.
|
||||
|
||||
The API is inspired by a Ruby library of the same name, but Python flexmock is
|
||||
not a clone of the Ruby version. It omits a number of redundancies in the Ruby
|
||||
flexmock API, alters some defaults, and introduces a number of Python-only
|
||||
features.
|
||||
|
||||
flexmock's design focuses on simplicity and intuitiveness. This means that the
|
||||
API is as lean as possible, though a few convenient short-hand methods are
|
||||
provided to aid brevity and readability.
|
||||
|
||||
flexmock declarations are structured to read more like English sentences than
|
||||
API calls, and it is possible to chain them together in any order to achieve
|
||||
high degree of expressiveness in a single line of code.
|
||||
|
||||
In addition, flexmock integrates seamlessly with all major test runners to
|
||||
reduce even more mock-related boilerplate code.
|
16
devel/py-flexmock/Makefile
Normal file
16
devel/py-flexmock/Makefile
Normal file
|
@ -0,0 +1,16 @@
|
|||
# $NetBSD: Makefile,v 1.1 2014/06/14 13:53:44 rodent Exp $
|
||||
|
||||
DISTNAME= flexmock-0.9.7
|
||||
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= https://pypi.python.org/packages/source/f/flexmock/
|
||||
|
||||
MAINTAINER= rodent@NetBSD.org
|
||||
HOMEPAGE= http://has207.github.com/flexmock
|
||||
COMMENT= Mock/Stub/Spy library for Python
|
||||
LICENSE= 2-clause-bsd
|
||||
|
||||
USE_LANGUAGES= # none
|
||||
|
||||
.include "../../lang/python/distutils.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
5
devel/py-flexmock/PLIST
Normal file
5
devel/py-flexmock/PLIST
Normal file
|
@ -0,0 +1,5 @@
|
|||
@comment $NetBSD: PLIST,v 1.1 2014/06/14 13:53:44 rodent Exp $
|
||||
${PYSITELIB}/${EGG_FILE}
|
||||
${PYSITELIB}/flexmock.py
|
||||
${PYSITELIB}/flexmock.pyc
|
||||
${PYSITELIB}/flexmock.pyo
|
5
devel/py-flexmock/distinfo
Normal file
5
devel/py-flexmock/distinfo
Normal file
|
@ -0,0 +1,5 @@
|
|||
$NetBSD: distinfo,v 1.1 2014/06/14 13:53:44 rodent Exp $
|
||||
|
||||
SHA1 (flexmock-0.9.7.tar.gz) = b0fcd20d3755e6d4d008e15a9eda583e702e6ae9
|
||||
RMD160 (flexmock-0.9.7.tar.gz) = 079d0ffa06749b17d9cb65d8270c46f5298c96a2
|
||||
Size (flexmock-0.9.7.tar.gz) = 24997 bytes
|
Loading…
Reference in a new issue