OpenBSD Handbook

OpenBSD 7.9 release · amd64 · Generated 2026-09-09

py3-mock-5.1.0p0

python mocking and patching library for testing

Back to search · Project homepage

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

Package information

Ports path
devel/py-mock
Package architecture
amd64
Maintainer
Kurt Mosiejczuk <kmos@openbsd.org>
Categories
devel, lang/python
Available flavors
None listed
Only for architectures
aarch64, amd64, arm, i386, mips64, mips64el, powerpc, powerpc64, riscv64, alpha, hppa, sparc64

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

Runtime

Build

Test

Used by (76 dependency relationships)

Includes library, runtime, build and test relationships. Results load 100 at a time.

Installing and updating packages · Package details as JSON