Open ilka-schulz opened 1 year ago
When I run pytest from the project root directory, 18 test fail, all with the same error message:
pytest
____________________________________________________________ test_MPR6_matches_MPT6 _____________________________________________________________ testdata_dir = '/home/user/galvani/tests/testdata' def test_MPR6_matches_MPT6(testdata_dir): > mpr = MPRfile(os.path.join(testdata_dir, 'bio_logic6.mpr')) tests/test_BioLogic.py:213: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <galvani.BioLogic.MPRfile object at 0x75c16c88b430>, file_or_path = '/home/user/galvani/tests/testdata/bio_logic6.mpr' def __init__(self, file_or_path): self.loop_index = None if isinstance(file_or_path, str): mpr_file = open(file_or_path, 'rb') else: mpr_file = file_or_path magic = mpr_file.read(len(MPR_MAGIC)) if magic != MPR_MAGIC: > raise ValueError('Invalid magic for .mpr file: %s' % magic) E ValueError: Invalid magic for .mpr file: b'version https://git-lfs.github.com/spec/v1\noid sha25' galvani/BioLogic.py:382: ValueError
Install git-lfs and clone the repository again. git-lfs will download the data files and then the tests should work.
When I run
pytest
from the project root directory, 18 test fail, all with the same error message: