[tests] cheap read test

This commit is contained in:
sneakers-the-rat 2023-10-05 22:12:27 -07:00
parent 8405ea948a
commit 06311b21bd

View file

@ -5,17 +5,16 @@ import pytest
from pathlib import Path from pathlib import Path
import numpy as np import numpy as np
from ..fixtures import tmp_output_dir, set_config_vars from ..fixtures import tmp_output_dir, set_config_vars, data_dir
from nwb_linkml.io.hdf5 import HDF5IO from nwb_linkml.io.hdf5 import HDF5IO
from nwb_linkml.io.hdf5 import truncate_file from nwb_linkml.io.hdf5 import truncate_file
# @pytest.mark.skip() @pytest.mark.parametrize('dset', ['aibs.nwb'])
def test_hdf_read(): def test_hdf_read(data_dir, dset):
NWBFILE = Path('/Users/jonny/Dropbox/lab/p2p_ld/data/nwb/sub-738651046_ses-760693773.nwb') NWBFILE = data_dir / dset
if not NWBFILE.exists():
return
io = HDF5IO(path=NWBFILE) io = HDF5IO(path=NWBFILE)
# the test for now is just whether we can read it lol
model = io.read() model = io.read()