./devel/py-test-arraydiff [pytest plugin to generate/compare data arrays]
[+] Add this package to your ports tracker

[ CVSweb ] [ Homepage ] [ RSS feed ]

Version: 0.5.0, Package name: py-test-arraydiff-0.5.0
Maintained by: The OpenBSD ports mailing-list
Master sites:
Flavors (export FLAVOR=xyz, setenv FLAVOR xyz):
  • python3
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.

Filesize: 12.065 KB
Version History (View Complete History)
  • (2022-05-25) Package added to openports.se, version py-test-arraydiff-0.5.0 (created)
[show/hide] View available PLISTS (Can be a lot of data)