BSD Ports

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

SystemPortVersion
MidnightBSDdevel/py-mock5.2.0_1
FreeBSDdevel/py-mock5.2.0_1
OpenBSDdevel/py-mock5.1.0p1
NetBSDdevel/py-mock5.2.0nb1
DragonFlydevel/py-mock5.2.0_1
HardenedBSDdevel/py-mock5.2.0_1
GhostBSDdevel/py-mock5.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

Run dependencies 1

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
testing-cabal-mock-5.2.0_GH0.tar.gz90933ab700375e77a5213e8def1f61c2d83ca1b50ff9b56b541992dc54784c1274c52