hdmf-dev / hdmf-zarr

Zarr I/O backend for HDMF
https://hdmf-zarr.readthedocs.io/
Other
7 stars 6 forks source link

Add test to ensure links keep working after files are moved #58

Open oruebel opened 1 year ago

oruebel commented 1 year ago

In #44 and #46 we changed reference to use relative paths to improve portability of files. During debugging we tested links continue to function when file paths change by changing the current working directory. For future testing we should add a test where we generate a file with references and then move the file to a different path and then open the file with different relative and absolute path (and using different Python working directories) to make sure links continue to function when files are being moved. See the example here for the tutorial which can be turned into a unit test:

https://github.com/hdmf-dev/hdmf-zarr/blob/6841196aac0b8d66a112bedf4fc0f26b6de48272/docs/gallery/plot_nwb_zarrio.py#L138-L158

mavaylon1 commented 6 months ago

Will do by release 0.8.0 in June 2024.