devel/py-fudge 1.1.1_1 FreeBSD
Python module for using fake objects to test real ones
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- MIT
- Categories
- devel, python
- Package size
- 77.3 KiB, 591.7 KiB installed
Description
Fudge is a Python module for using fake objects (mocks, stubs, etc) to test real ones.
This module is designed for two specific situations: * Replace an object o Temporarily return a canned value for a method or allow a method to be called without affect. * Ensure an object is used correctly o Declare expectations about what methods should be called and what arguments should be sent.
Fudge was inspired by Mocha which is a simpler version of jMock. But unlike Mocha, Fudge does not automatically hijack real objects; you explicitly patch them in your test setup. And unlike jMock, Fudge is only as strict about expectations as you want it to be. If you just want to expect a method call without worrying about its arguments or the type of the arguments then you can.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-fudge | 1.1.1_1 |
| DragonFly | devel/py-fudge | 1.1.1_1 |
| HardenedBSD | devel/py-fudge | 1.1.1_1 |
| GhostBSD | devel/py-fudge | 1.1.1_1 |
Install
Binary package:
pkg install py312-fudge
From the ports tree:
cd /usr/ports/devel/py-fudge/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-fudge>0:devel/py-fudge
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 | 1.1.1_1 | 1.1.1_1 | 1.1.1 | 1.1.1_1 | 1.1.1_1 |
| FreeBSD:14:quarterly | 1.1.1_1 | 1.1.1_1 | n/a | 1.1.1_1 | 1.1.1_1 |
| FreeBSD:15:latest | 1.1.1_1 | 1.1.1_1 | n/a | 1.1.1_1 | 1.1.1_1 |
| FreeBSD:15:quarterly | 1.1.1_1 | 1.1.1_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.1.1_1 | 1.1.1_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 11
Run dependencies 7
Required by 1
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| fudge-1.1.1.tar.gz | 87604 | d9929d87bb38711112734d99a2c7ada5dc39ef67b758b1e55f4c779c3634efdc |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.