During packaging https://github.com/spedas/pyspedas for Guix I've faced with the
issue of failing unit test of geopack which comes as install dependency of the
project:
Using pytest
============================= test session starts ==============================
platform linux -- Python 3.10.7, pytest-7.1.3, pluggy-1.0.0 -- /gnu/store/jh59fh48mcffyz5wmsjj0p96xkkflbz0-python-wrapper-3.10.7/bin/python
cachedir: .pytest_cache
hypothesis profile 'default' -> database=DirectoryBasedExampleDatabase('/tmp/guix-build-python-geopack-1.0.10.drv-0/geopack-1.0.10/.hypothesis/examples')
rootdir: /tmp/guix-build-python-geopack-1.0.10.drv-0/geopack-1.0.10
plugins: hypothesis-6.54.5
collecting ... collected 1 item
geopack/test_geopack1.py::KnownValues::test_to_known_values FAILED [100%]
=================================== FAILURES ===================================
_______________________ KnownValues.test_to_known_values _______________________
self = <geopack.test_geopack1.KnownValues testMethod=test_to_known_values>
def test_to_known_values(self):
"""geopack should give known result with known input"""
# test recalc, which returns dipole tilt angle in rad.
> self.assertEqual(self.test['recalc'], geopack.recalc(self.test['ut'], *self.test['v_gse']))
E AssertionError: -0.53356312486214 != -0.5335631237417825
geopack/test_geopack1.py:62: AssertionError
=========================== short test summary info ============================
FAILED geopack/test_geopack1.py::KnownValues::test_to_known_values - Assertio...
============================== 1 failed in 0.75s ===============================
Hi,
During packaging https://github.com/spedas/pyspedas for Guix I've faced with the issue of failing unit test of geopack which comes as install dependency of the project:
Python 3.10.7
python-geopack@1.0.10
python-pytest@7.1.3
python-numpy@1.23.2
python-scipy@1.12.0