BSD Ports

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

SystemPortVersion
FreeBSDdevel/py-fudge1.1.1_1
DragonFlydevel/py-fudge1.1.1_1
HardenedBSDdevel/py-fudge1.1.1_1
GhostBSDdevel/py-fudge1.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.1.1_11.1.1_11.1.11.1.1_11.1.1_1
FreeBSD:14:quarterly1.1.1_11.1.1_1n/a1.1.1_11.1.1_1
FreeBSD:15:latest1.1.1_11.1.1_1n/a1.1.1_11.1.1_1
FreeBSD:15:quarterly1.1.1_11.1.1_1n/an/an/a
FreeBSD:16:latest1.1.1_11.1.1_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/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
FileSizeSHA256
fudge-1.1.1.tar.gz87604d9929d87bb38711112734d99a2c7ada5dc39ef67b758b1e55f4c779c3634efdc
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.