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
| System | Port | Version |
|---|---|---|
| DragonFly | devel/py-mock | 5.2.0_1 |
| FreeBSD | devel/py-mock | 5.2.0_1 |
| OpenBSD | devel/py-mock | 5.1.0p1 |
| NetBSD | devel/py-mock | 5.2.0nb1 |
| MidnightBSD | devel/py-mock | 5.2.0_1 |
| HardenedBSD | devel/py-mock | 5.2.0_1 |
| GhostBSD | devel/py-mock | 5.2.0_1 |
Install
Binary package:
pkg install py311-mock
From DPorts:
cd /usr/dports/devel/py-mock && make install clean