1212from zarr .store .common import StorePath
1313
1414
15- @pytest .mark .parametrize ("store" , ( "local" , "memory" , "zip" ) , indirect = ["store" ])
16- @pytest .mark .parametrize ("zarr_format" , ( 2 , 3 ) )
15+ @pytest .mark .parametrize ("store" , [ "local" , "memory" , "zip" ] , indirect = ["store" ])
16+ @pytest .mark .parametrize ("zarr_format" , [ 2 , 3 ] )
1717@pytest .mark .parametrize ("exists_ok" , [True , False ])
1818@pytest .mark .parametrize ("extant_node" , ["array" , "group" ])
1919def test_array_creation_existing_node (
@@ -61,8 +61,8 @@ def test_array_creation_existing_node(
6161 )
6262
6363
64- @pytest .mark .parametrize ("store" , ( "local" , "memory" , "zip" ) , indirect = ["store" ])
65- @pytest .mark .parametrize ("zarr_format" , ( 2 , 3 ) )
64+ @pytest .mark .parametrize ("store" , [ "local" , "memory" , "zip" ] , indirect = ["store" ])
65+ @pytest .mark .parametrize ("zarr_format" , [ 2 , 3 ] )
6666def test_array_name_properties_no_group (
6767 store : LocalStore | MemoryStore , zarr_format : ZarrFormat
6868) -> None :
@@ -72,8 +72,8 @@ def test_array_name_properties_no_group(
7272 assert arr .basename is None
7373
7474
75- @pytest .mark .parametrize ("store" , ( "local" , "memory" , "zip" ) , indirect = ["store" ])
76- @pytest .mark .parametrize ("zarr_format" , ( 2 , 3 ) )
75+ @pytest .mark .parametrize ("store" , [ "local" , "memory" , "zip" ] , indirect = ["store" ])
76+ @pytest .mark .parametrize ("zarr_format" , [ 2 , 3 ] )
7777def test_array_name_properties_with_group (
7878 store : LocalStore | MemoryStore , zarr_format : ZarrFormat
7979) -> None :
@@ -123,7 +123,7 @@ def test_array_v3_fill_value_default(
123123
124124@pytest .mark .parametrize ("store" , ["memory" ], indirect = True )
125125@pytest .mark .parametrize (
126- "dtype_str, fill_value" ,
126+ ( "dtype_str" , " fill_value") ,
127127 [("bool" , True ), ("uint8" , 99 ), ("float32" , - 99.9 ), ("complex64" , 3 + 4j )],
128128)
129129def test_array_v3_fill_value (store : MemoryStore , fill_value : int , dtype_str : str ) -> None :
@@ -201,8 +201,8 @@ async def test_array_v3_nan_fill_value(store: MemoryStore) -> None:
201201 assert len ([a async for a in store .list_prefix ("/" )]) == 0
202202
203203
204- @pytest .mark .parametrize ("store" , ( "local" ,) , indirect = ["store" ])
205- @pytest .mark .parametrize ("zarr_format" , ( 2 , 3 ) )
204+ @pytest .mark .parametrize ("store" , [ "local" ] , indirect = ["store" ])
205+ @pytest .mark .parametrize ("zarr_format" , [ 2 , 3 ] )
206206async def test_serializable_async_array (
207207 store : LocalStore | MemoryStore , zarr_format : ZarrFormat
208208) -> None :
@@ -219,8 +219,8 @@ async def test_serializable_async_array(
219219 # TODO: uncomment the parts of this test that will be impacted by the config/prototype changes in flight
220220
221221
222- @pytest .mark .parametrize ("store" , ( "local" ,) , indirect = ["store" ])
223- @pytest .mark .parametrize ("zarr_format" , ( 2 , 3 ) )
222+ @pytest .mark .parametrize ("store" , [ "local" ] , indirect = ["store" ])
223+ @pytest .mark .parametrize ("zarr_format" , [ 2 , 3 ] )
224224def test_serializable_sync_array (store : LocalStore , zarr_format : ZarrFormat ) -> None :
225225 expected = Array .create (
226226 store = store , shape = (100 ,), chunks = (10 ,), zarr_format = zarr_format , dtype = "i4"
0 commit comments