I am in the process of updating python-mnemonic. Historically, tests have not been enabled. I can build the new version just fine, but when I enable tests by adding a Build-Depend on "python3-pytest <!nocheck>” the build fails [1] with the following error:
def test_vectors(self) -> None:
with open("vectors.json", "r") as f:
E FileNotFoundError: [Errno 2] No such file or directory: 'vectors.json' tests/test_mnemonic.py:45: FileNotFoundError
vectors.json is located in the root [2]. But for some reason it is not available in the test environment (or the test is looking in the wrong place).
I could, of course, disable the tests again. But I would like to run them if possible. Does anybody have any idea what I would need to do to make this file
available to the test?
[1]
https://salsa.debian.org/python-team/packages/python-mnemonic/-/jobs/ 6341467#L1138
[2]
https://salsa.debian.org/python-team/packages/python-mnemonic/-/blob/ debian/master/vectors.json?ref_type=heads
--
Soren Stoutner
[email protected]
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEJKVN2yNUZnlcqOI+wufLJ66wtgMFAmb2IPUACgkQwufLJ66w tgMTDQ/+PrG9TRKAzodqnscbXNH6wKFiMsbSsmN4IVz2FoKRFkNGI4WScoHMZunI +vuMEhC3SV7M+0JYponYBwVU2/TXoRp2tAFEk1Y00GydgWhmbg9hW9IFHa/cIzUK u1kT1LbHPGHwaco6J8HkuekDmKcawvrpIFdHFsCXZhRzN4B56w8l6N0L2siMaOvI ISXRquH3OjVChnZx1BpRxzbt7h0YiXRC7oCNSqwpffgeeAlCIDW48RlQ4PwOKJCx nz23PvnPwBhGAWDnrS2dyM1HLex3BAP9Y9HT4FmZaXCoFSCqxDMtBO+UDy1vbNMa YawYE9m0KyjAOBwhj/D9XUKME2UAMBntCCe+BrhGY0mP/4+shgTVhgeDxFcGyW25 vVfW3s1stTYbBn1q8hjTeino9QYY2iyYv3A02SgE1va5HwRUGmDqRNewJJIVPzdk UcF1oxhBh+yoJHFsxbS6nRuwreYfCuFntUPy+W2liH2JufzgsFSTpoi8cM7NoeXQ dRiD1xkslbULGxn5XtsXjbEeiGYLo5h/aOKUiGdAW/pUI1b7znTTJ8Mw2tc2ZHWF V3jmahwN156kvNZMaSesPSiNf4NQ0BM33Uaw3cL095I2w8RBFWd9i5zSXhbPN1CI d8fzP4AIkRQE+aCfG+z4gB/Y9vLlja6GWbYsad3hnmIAEKwJJOg=
=zXNc
-----END PGP SIGNATURE-----
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)