py3-mock-5.1.0p1
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, sparc64, alpha, hppa
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
- lang/python/3
- devel/py-build
- devel/py-installer
- devel/py-setuptools py3-setuptools->=79v0
- devel/py-wheel
Test
Used by (76 dependency relationships)
Includes library, runtime, build and test relationships. Results load 100 at a time.