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
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-pytest-cases | 3.10.1 |
| DragonFly | devel/py-pytest-cases | 3.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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 3.10.1 | 3.10.1 | - | 3.9.1 | 3.10.1 |
| FreeBSD:14:quarterly | 3.10.1 | 3.10.1 | n/a | 3.9.1 | 3.10.1 |
| FreeBSD:15:latest | 3.10.1 | 3.10.1 | n/a | 3.9.1 | 3.9.1 |
| FreeBSD:15:quarterly | 3.10.1 | 3.10.1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 3.10.1 | 3.10.1 | 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 3
${PYTHON_PKGNAMEPREFIX}setuptools>=39.2<82: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0: devel/py-setuptools-scm${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Runtime 3
${PYTHON_PKGNAMEPREFIX}decopatch>=0: devel/py-decopatch${PYTHON_PKGNAMEPREFIX}makefun>=1.15.1: devel/py-makefun${PYTHON_PKGNAMEPREFIX}packaging>=0: devel/py-packaging
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
| File | Size | SHA256 |
|---|---|---|
| pytest_cases-3.10.1.tar.gz | 1.095867e+06 | 451f9e3ecd5d2d81a4362c10c441126f5b3d1ae3a7efaf59f60b1fb930df2d69 |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.