@@ -394,14 +394,18 @@ async def test_sharding_with_empty_inner_chunk(
394394 data_read = await a .getitem (...)
395395 assert np .array_equal (data_read , data )
396396
397+
397398@pytest .mark .parametrize ("store" , ["local" , "memory" ], indirect = ["store" ])
398399@pytest .mark .parametrize (
399- "index_location" , [ShardingCodecIndexLocation .start , ShardingCodecIndexLocation .end ],
400+ "index_location" ,
401+ [ShardingCodecIndexLocation .start , ShardingCodecIndexLocation .end ],
400402)
401- @pytest .mark .parametrize ("chunks_per_shard" , [(5 ,2 ), (2 ,5 ), (5 ,5 )])
402- async def test_sharding_with_chunks_per_shard (store : Store , index_location : ShardingCodecIndexLocation , chunks_per_shard : tuple ) -> None :
403- chunk_shape = (2 ,1 )
404- shape = [x * y for x ,y in zip (chunks_per_shard , chunk_shape , strict = False )]
403+ @pytest .mark .parametrize ("chunks_per_shard" , [(5 , 2 ), (2 , 5 ), (5 , 5 )])
404+ async def test_sharding_with_chunks_per_shard (
405+ store : Store , index_location : ShardingCodecIndexLocation , chunks_per_shard : tuple [int ]
406+ ) -> None :
407+ chunk_shape = (2 , 1 )
408+ shape = [x * y for x , y in zip (chunks_per_shard , chunk_shape , strict = False )]
405409 data = np .ones (np .prod (shape ), dtype = "int32" ).reshape (shape )
406410 fill_value = 42
407411
0 commit comments