File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1919
2020
2121def validate_schema (* , path : str , type : str ):
22-
22+ if __OME_NGFF_VERSION__ != "0.4" :
23+ raise ValueError (
24+ "This test is only valid for OME-NGFF version 0.4, please update the test."
25+ )
2326 file_path = pooch .retrieve (
2427 url = (
25- "https://raw.githubusercontent.com/ome/ngff/main/"
26- f"{ __OME_NGFF_VERSION__ } /schemas/{ type } .schema"
28+ f"https://raw.githubusercontent.com/ome/ngff/7ac3430c74a66e5bcf53e41c429143172d68c0a4/schemas/{ type } .schema"
2729 ),
2830 known_hash = None ,
2931 )
Original file line number Diff line number Diff line change @@ -126,10 +126,14 @@ def test_get_channel_from_list(testdata_path: Path):
126126
127127@pytest .fixture (scope = "session" )
128128def omero_channel_schema ():
129+
130+ if __OME_NGFF_VERSION__ != "0.4" :
131+ raise ValueError (
132+ "This test is only valid for OME-NGFF version 0.4, please update the test."
133+ )
129134 file_path = pooch .retrieve (
130135 url = (
131- "https://raw.githubusercontent.com/ome/ngff/main/"
132- f"{ __OME_NGFF_VERSION__ } /schemas/image.schema"
136+ "https://raw.githubusercontent.com/ome/ngff/7ac3430c74a66e5bcf53e41c429143172d68c0a4/schemas/image.schema"
133137 ),
134138 known_hash = None ,
135139 )
You can’t perform that action at this time.
0 commit comments