Package Info

python-pytest-arraydiff


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.1 info GA Release 2023-07-22 15 SP6
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-pytest-arraydiff
0.3-bp155.2.10 info GA Release 2023-05-22 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-pytest-arraydiff
0.3-bp154.1.24 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-pytest-arraydiff
0.3-bp153.1.14 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-pytest-arraydiff
  • python3-pytest-arraydiff
0.3-bp152.1.10 info GA Release 2020-04-17 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-pytest-arraydiff
  • python3-pytest-arraydiff
0.2-bp151.1.1 info GA Release 2019-06-18 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-pytest-arraydiff
  • python3-pytest-arraydiff