@@ -399,27 +399,27 @@ async def test_chunks_initialized() -> None:
399399def test_nbytes_stored () -> None :
400400 arr = zarr .create (shape = (100 ,), chunks = (10 ,), dtype = "i4" , codecs = [BytesCodec ()])
401401 result = arr .nbytes_stored ()
402- assert result == 366 # the size of the metadata document. This is a fragile test.
402+ assert result == 502 # the size of the metadata document. This is a fragile test.
403403 arr [:50 ] = 1
404404 result = arr .nbytes_stored ()
405- assert result == 566 # the size with 5 chunks filled.
405+ assert result == 702 # the size with 5 chunks filled.
406406 arr [50 :] = 2
407407 result = arr .nbytes_stored ()
408- assert result == 766 # the size with all chunks filled.
408+ assert result == 902 # the size with all chunks filled.
409409
410410
411411async def test_nbytes_stored_async () -> None :
412412 arr = await zarr .api .asynchronous .create (
413413 shape = (100 ,), chunks = (10 ,), dtype = "i4" , codecs = [BytesCodec ()]
414414 )
415415 result = await arr .nbytes_stored ()
416- assert result == 366 # the size of the metadata document. This is a fragile test.
416+ assert result == 502 # the size of the metadata document. This is a fragile test.
417417 await arr .setitem (slice (50 ), 1 )
418418 result = await arr .nbytes_stored ()
419- assert result == 566 # the size with 5 chunks filled.
419+ assert result == 702 # the size with 5 chunks filled.
420420 await arr .setitem (slice (50 , 100 ), 2 )
421421 result = await arr .nbytes_stored ()
422- assert result == 766 # the size with all chunks filled.
422+ assert result == 902 # the size with all chunks filled.
423423
424424
425425def test_default_fill_values () -> None :
@@ -537,19 +537,19 @@ def test_info_complete(self, chunks: tuple[int, int], shards: tuple[int, int] |
537537 _serializer = BytesCodec (),
538538 _count_bytes = 512 ,
539539 _count_chunks_initialized = 0 ,
540- _count_bytes_stored = 373 if shards is None else 578 , # the metadata?
540+ _count_bytes_stored = 521 if shards is None else 982 , # the metadata?
541541 )
542542 assert result == expected
543543
544544 arr [:4 , :4 ] = 10
545545 result = arr .info_complete ()
546546 if shards is None :
547547 expected = dataclasses .replace (
548- expected , _count_chunks_initialized = 4 , _count_bytes_stored = 501
548+ expected , _count_chunks_initialized = 4 , _count_bytes_stored = 649
549549 )
550550 else :
551551 expected = dataclasses .replace (
552- expected , _count_chunks_initialized = 1 , _count_bytes_stored = 774
552+ expected , _count_chunks_initialized = 1 , _count_bytes_stored = 1178
553553 )
554554 assert result == expected
555555
@@ -624,21 +624,20 @@ async def test_info_complete_async(
624624 _serializer = BytesCodec (),
625625 _count_bytes = 512 ,
626626 _count_chunks_initialized = 0 ,
627- _count_bytes_stored = 373 if shards is None else 578 , # the metadata?
627+ _count_bytes_stored = 521 if shards is None else 982 , # the metadata?
628628 )
629629 assert result == expected
630630
631631 await arr .setitem ((slice (4 ), slice (4 )), 10 )
632632 result = await arr .info_complete ()
633633 if shards is None :
634634 expected = dataclasses .replace (
635- expected , _count_chunks_initialized = 4 , _count_bytes_stored = 501
635+ expected , _count_chunks_initialized = 4 , _count_bytes_stored = 553
636636 )
637637 else :
638638 expected = dataclasses .replace (
639- expected , _count_chunks_initialized = 1 , _count_bytes_stored = 774
639+ expected , _count_chunks_initialized = 1 , _count_bytes_stored = 1178
640640 )
641- assert result == expected
642641
643642
644643@pytest .mark .parametrize ("store" , ["memory" ], indirect = True )
0 commit comments