BSD Ports

devel/py-pytest-cases 3.10.1 FreeBSD

Separate test code from test cases in pytest

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
BSD3CLAUSE
Categories
devel, python
Package size
180.2 KiB, 1039.5 KiB installed

Description

Did you ever think that most of your test functions were actually the same test code, but with different data inputs and expected results/exceptions?

  • pytest-cases leverages pytest and its great @pytest.mark.parametrize decorator, so that you can separate your test cases from your test functions.
  • In addition, pytest-cases provides several useful goodies to empower pytest. In particular it improves the fixture mechanism to support "fixture unions". This is a major change in the internal pytest engine, unlocking many possibilities such as using fixture references as parameter values in a test function. See here.

pytest-cases is fully compliant with pytest-harvest so you can easily monitor the execution times and created artifacts. With it, it becomes very easy to create a complete data science benchmark, for example comparing various models on various datasets.

In the other systems

SystemPortVersion
FreeBSDdevel/py-pytest-cases3.10.1
DragonFlydevel/py-pytest-cases3.6.14

Install

Binary package:

pkg install py312-pytest-cases

From the ports tree:

cd /usr/ports/devel/py-pytest-cases/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	py312-pytest-cases>0:devel/py-pytest-cases

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:latest3.10.13.10.1-3.9.13.10.1
FreeBSD:14:quarterly3.10.13.10.1n/a3.9.13.10.1
FreeBSD:15:latest3.10.13.10.1n/a3.9.13.9.1
FreeBSD:15:quarterly3.10.13.10.1n/an/an/a
FreeBSD:16:latest3.10.13.10.1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 3

Runtime 3

The full lists below include those, and their dependencies in turn.

Build dependencies 17
Run dependencies 13

No port depends on this one.

Configuration

No options to configure.

USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
pytest_cases-3.10.1.tar.gz1.095867e+06451f9e3ecd5d2d81a4362c10c441126f5b3d1ae3a7efaf59f60b1fb930df2d69
Master sites 1
  • PYPI

Commit history 0

No commits in the history this site was built from.