mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
48 lines
1.2 KiB
Bash
48 lines
1.2 KiB
Bash
SUMMARY="A library for testing in Python"
|
|
DESCRIPTION="
|
|
Mock allows you to replace parts of your system under test with mock objects \
|
|
and make assertions about how they have been used.
|
|
|
|
Mock provides a core 'MagicMock' class removing 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.
|
|
|
|
The mock module also provides utility functions / objects to assist with \
|
|
testing, particularly monkey patching."
|
|
HOMEPAGE="http://pypi.python.org/pypi/mock"
|
|
COPYRIGHT="2003-2012, Michael Foord"
|
|
LICENSE="BSD (2-clause)"
|
|
REVISION="1"
|
|
SOURCE_URI="https://pypi.python.org/packages/source/m/mock/mock-1.0.1.tar.gz"
|
|
CHECKSUM_SHA256="b839dd2d9c117c701430c149956918a423a9863b48b09c90e30a6013e7d2f44f"
|
|
SOURCE_DIR="mock-$portVersion"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
python_mock = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
cmd:python
|
|
"
|
|
|
|
BUILD_REQUIRES=""
|
|
BUILD_PREREQUIRES="
|
|
haiku_devel
|
|
cmd:python
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
$portPackageLinksDir/cmd~python/bin/python setup.py build
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
$portPackageLinksDir/cmd~python/bin/python setup.py install \
|
|
--prefix=$prefix
|
|
}
|