BSD Ports

devel/py-test-arraydiff 0.7.0 OpenBSD

pytest plugin to generate/compare data arrays

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Last update
Commit
6788c5130b
Categories
devel, lang/python

Description

This is a py.test plugin to facilitate the generation and comparison of data arrays produced during tests, in particular in cases where the arrays are too large to conveniently hard-code them in the tests (e.g. np.testing.assert_allclose(x, [1, 2, 3])).

The basic idea is that you can write a test that generates a Numpy array (or other related objects depending on the format, e.g. pandas DataFrame). You can then either run the tests in a mode to generate reference files from the arrays, or you can run the tests in comparison mode, which will compare the results of the tests to the reference ones within some tolerance.

Install

Binary package:

pkg_add py3-test-arraydiff

From the ports tree:

cd /usr/ports/devel/py-test-arraydiff && make install

Dependencies

Build dependencies 6
Run dependencies 3
Required by 1

Commit history 1

DateCommitCreditsLog message
6788c5130b sthen update to py3-test-arraydiff-0.7.0