BSD Ports

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

SystemPortVersion
FreeBSDdevel/py-flexmock0.13.0
OpenBSDdevel/py-flexmock0.13.0p0
NetBSDdevel/py-flexmock0.13.0
DragonFlydevel/py-flexmock0.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.13.00.13.00.11.30.12.20.13.0
FreeBSD:14:quarterly0.13.00.13.0n/a0.12.20.13.0
FreeBSD:15:latest0.13.00.13.0n/a0.12.20.12.2
FreeBSD:15:quarterly0.13.00.13.0n/an/an/a
FreeBSD:16:latest0.13.00.13.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

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
FileSizeSHA256
flexmock-0.13.0.tar.gz507486829d7a0d7f746db3087da8fda62f924e52df7ece4051c2f59ad586cf5ad7977
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.