diff --git a/CHANGELOG.md b/CHANGELOG.md index a2d837b0a..7d165a1bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ **Note**: Numbers like (\#123) point to closed Pull Requests on the fractal-tasks-core repository. +# Unreleased + +* Testing: + * Fix links to ome/ngff specs (\#930). + # 1.4.3 * Tasks: diff --git a/tests/tasks/_validation.py b/tests/tasks/_validation.py index 00ff4028b..3c008bb12 100644 --- a/tests/tasks/_validation.py +++ b/tests/tasks/_validation.py @@ -19,11 +19,15 @@ def validate_schema(*, path: str, type: str): - + if __OME_NGFF_VERSION__ != "0.4": + raise ValueError( + "This test is only valid for OME-NGFF version 0.4, " + "please update the test." + ) file_path = pooch.retrieve( url=( - "https://raw.githubusercontent.com/ome/ngff/main/" - f"{__OME_NGFF_VERSION__}/schemas/{type}.schema" + "https://raw.githubusercontent.com/ome/ngff/" + f"7ac3430c74a66e5bcf53e41c429143172d68c0a4/schemas/{type}.schema" ), known_hash=None, ) diff --git a/tests/test_unit_channels.py b/tests/test_unit_channels.py index 76fe38dcc..92ad69b7f 100644 --- a/tests/test_unit_channels.py +++ b/tests/test_unit_channels.py @@ -126,10 +126,16 @@ def test_get_channel_from_list(testdata_path: Path): @pytest.fixture(scope="session") def omero_channel_schema(): + + if __OME_NGFF_VERSION__ != "0.4": + raise ValueError( + "This test is only valid for OME-NGFF version 0.4, " + "please update the test." + ) file_path = pooch.retrieve( url=( - "https://raw.githubusercontent.com/ome/ngff/main/" - f"{__OME_NGFF_VERSION__}/schemas/image.schema" + "https://raw.githubusercontent.com/ome/ngff/" + "7ac3430c74a66e5bcf53e41c429143172d68c0a4/schemas/image.schema" ), known_hash=None, )