BSD Ports

devel/py-mock 5.2.0_1 DragonFly

Rolling backport of unittest.mock for all Pythons

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD2CLAUSE
Categories
devel, python
Package size
69.0 KiB, 406.4 KiB installed

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

Install

Binary package:

pkg install py311-mock

From DPorts:

cd /usr/dports/devel/py-mock && make install clean

Dependencies

Run dependencies 1