@@ -70,7 +70,14 @@ def test_read(store: Store) -> None:
7070 """
7171 # create an array and a group
7272 _ = create_group (store = store , path = "group" , attributes = {"node_type" : "group" })
73- _ = create_array (store = store , path = "array" , shape = (10 , 10 ), attributes = {"node_type" : "array" })
73+ _ = create_array (
74+ store = store ,
75+ path = "array" ,
76+ shape = (10 , 10 ),
77+ chunk_shape = (1 , 1 ),
78+ dtype = "uint8" ,
79+ attributes = {"node_type" : "array" },
80+ )
7481
7582 group_r = read (store , path = "group" )
7683 assert isinstance (group_r , Group )
@@ -89,7 +96,9 @@ def test_create_array(store: Store) -> None:
8996 shape = (10 , 10 )
9097 path = "foo"
9198 data_val = 1
92- array_w = create_array (store , path = path , shape = shape , attributes = attrs )
99+ array_w = create_array (
100+ store , path = path , shape = shape , attributes = attrs , chunk_shape = shape , dtype = "uint8"
101+ )
93102 array_w [:] = data_val
94103 assert array_w .shape == shape
95104 assert array_w .attrs == attrs
@@ -107,7 +116,13 @@ def test_read_array(store: Store) -> None:
107116 for zarr_format in (2 , 3 ):
108117 attrs = {"zarr_format" : zarr_format }
109118 node_w = create_array (
110- store , path = path , shape = shape , attributes = attrs , zarr_format = zarr_format
119+ store ,
120+ path = path ,
121+ shape = shape ,
122+ attributes = attrs ,
123+ zarr_format = zarr_format ,
124+ chunk_shape = shape ,
125+ dtype = "uint8" ,
111126 )
112127 node_w [:] = data_val
113128
@@ -1214,9 +1229,9 @@ async def test_create_array_v2(store: MemoryStore) -> None:
12141229 store = store ,
12151230 dtype = dtype ,
12161231 shape = (10 ,),
1217- shard_shape = ( 4 ,) ,
1232+ shard_shape = None ,
12181233 chunk_shape = (4 ,),
1219- zarr_format = 3 ,
1234+ zarr_format = 2 ,
12201235 filters = (Delta (dtype = dtype ),),
12211236 compressors = (Zstd (level = 3 ),),
12221237 )
0 commit comments