devel/py-mock 5.2.0_1 MidnightBSD
Rolling backport of unittest.mock for all Pythons
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- bsd2
- Categories
- devel, python
Description
mock is a library for testing in Python. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used.
mock is now part of the Python standard library, available as unittest.mock in Python 3.3 onwards.
This package contains a rolling backport of the standard library mock code compatible with Python 2.7 and 3.4 and up.
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | devel/py-mock | 5.2.0_1 |
| FreeBSD | devel/py-mock | 5.2.0_1 |
| OpenBSD | devel/py-mock | 5.1.0p1 |
| NetBSD | devel/py-mock | 5.2.0nb1 |
| DragonFly | devel/py-mock | 5.2.0_1 |
| HardenedBSD | devel/py-mock | 5.2.0_1 |
| GhostBSD | devel/py-mock | 5.2.0_1 |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}mock
From mports:
cd /usr/mports/devel/py-mock && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock
Dependencies
As this port's Makefile names them.
Runtime 1
${PYTHON_PKGNAMEPREFIX}six>=0: devel/py-six
Run dependencies 1
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| testing-cabal-mock-5.2.0_GH0.tar.gz | 90933 | ab700375e77a5213e8def1f61c2d83ca1b50ff9b56b541992dc54784c1274c52 |