Package Info

python-pytest-arraydiff-test


Pytest plugin to help with comparing array output from tests


Development/Languages/Python

This is a py.test plugin to facilitate the generation and comparison of data arrays produced during tests.

The basic idea is that you can write a test that generates a Numpy array (or other related objects depending on the format). 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.

At the moment, the supported file formats for the reference files are:

  • A plain text-based format (baSed on Numpy loadtxt output)
  • The FITS format (requires astropy). With this format, tests can return either a Numpy array for a FITS HDU object.

License: BSD-2-Clause
URL: https://github.com/astrofrog/pytest-arraydiff

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.3-bp156.3.44 info GA Release 2024-05-21 15 SP6
0.3-bp155.2.50 info GA Release 2023-05-22 15 SP5
0.3-bp154.1.90 info GA Release 2022-05-09 15 SP4
0.3-bp153.1.77 info GA Release 2021-05-18 15 SP3
0.3-bp152.1.30 info GA Release 2020-06-23 15 SP2