python mocking and patching library for testing
Project homepage: https://mock.readthedocs.io/en/latest/
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, sparc64, alpha, hppa
Ports list build and test dependencies as well as runtime dependencies. pkg_add selects those needed for installation.
Direct dependencies
Runtime
Build
- lang/python/3
- devel/py-build
- devel/py-installer
- devel/py-setuptools py3-setuptools->=79v0
- devel/py-wheel
Test
Used by (77 dependency relationships)
Includes library, runtime, build and test dependencies.