BSD Ports

devel/py-mock 5.1.0p1 OpenBSD

python mocking and patching library for testing

System
OpenBSD
Repository
OpenBSD ports
Maintainer
Kurt Mosiejczuk <[email protected]>
Last update
Commit
3f059e808a
Categories
devel, lang/python

Description

mock is a Python module that provides a core Mock class. It removes the need to create a host of stubs throughout your test suite. After performing an action, you can make assertions about which methods or 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.

This module backports mock to Python 2.7 and earlier versions of Python 3.x

In the other systems

SystemPortVersion
OpenBSDdevel/py-mock5.1.0p1
FreeBSDdevel/py-mock5.2.0_1
NetBSDdevel/py-mock5.2.0nb1
DragonFlydevel/py-mock5.2.0_1
MidnightBSDdevel/py-mock5.2.0_1
HardenedBSDdevel/py-mock5.2.0_1
GhostBSDdevel/py-mock5.2.0_1

Install

Binary package:

pkg_add py3-mock

From the ports tree:

cd /usr/ports/devel/py-mock && make install

Dependencies

Build dependencies 5
Run dependencies 1

Commit history 1

DateCommitCreditsLog message
3f059e808a sthen drop @pkgpath/@conflict markers previously used for updates from 7.0/7.1