devel/py-flexmock 0.13.0 FreeBSD
Testing library to create mocks, stubs and fakes
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- BSD2CLAUSE
- Categories
- devel, python
- Package size
- 46.1 KiB, 237.2 KiB installed
Description
flexmock is a testing library for Python that makes it easy to create mocks, stubs and fakes.
Its API is inspired by a Ruby library of the same name. However, it is not a goal of Python flexmock to be a clone of the Ruby version. Instead, the focus is on providing full support for testing Python programs and making the creation of fake objects as unobtrusive as possible.
As a result, Python flexmock removes a number of redundancies in the Ruby flexmock API, alters some defaults, and introduces a number of Python-only features.
flexmock's design focuses on simplicity and intuitivenes. This means that the API is as lean as possible, though a few convenient short-hand methods are provided to aid brevity and readability.
flexmock declarations are structured to read more like English sentences than API calls, and it is possible to chain them together in any order to achieve high degree of expressiveness in a single line of code.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-flexmock | 0.13.0 |
| OpenBSD | devel/py-flexmock | 0.13.0p0 |
| NetBSD | devel/py-flexmock | 0.13.0 |
| DragonFly | devel/py-flexmock | 0.12.2 |
Install
Binary package:
pkg install py312-flexmock
From the ports tree:
cd /usr/ports/devel/py-flexmock/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-flexmock>0:devel/py-flexmock
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 0.13.0 | 0.13.0 | 0.11.3 | 0.12.2 | 0.13.0 |
| FreeBSD:14:quarterly | 0.13.0 | 0.13.0 | n/a | 0.12.2 | 0.13.0 |
| FreeBSD:15:latest | 0.13.0 | 0.13.0 | n/a | 0.12.2 | 0.12.2 |
| FreeBSD:15:quarterly | 0.13.0 | 0.13.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 0.13.0 | 0.13.0 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0: devel/py-poetry-core
The full lists below include those, and their dependencies in turn.
Build dependencies 15
Run dependencies 7
No port depends on this one.
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| flexmock-0.13.0.tar.gz | 50748 | 6829d7a0d7f746db3087da8fda62f924e52df7ece4051c2f59ad586cf5ad7977 |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.