From e40d648a9e4f9ab99f05b61668b073bbeed967c6 Mon Sep 17 00:00:00 2001 From: mavaylon1 Date: Thu, 18 Jul 2024 08:45:56 -0700 Subject: [PATCH] S3 test --- tests/unit/test_zarrio.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/test_zarrio.py b/tests/unit/test_zarrio.py index 081706a8..5ac9a79d 100644 --- a/tests/unit/test_zarrio.py +++ b/tests/unit/test_zarrio.py @@ -182,3 +182,7 @@ def test_force_open_without_consolidated_fails(self): except ValueError as e: self.fail("ZarrIO.__open_file_consolidated raised an unexpected ValueError: {}".format(e)) + def test_s3_open_with_consolidated_(self): + s3_path = "https://dandiarchive.s3.amazonaws.com/zarr/ccefbc9f-30e7-4a4c-b044-5b59d300040b/" + with ZarrIO(s3_path, mode='r') as read_io: + self.assertIsInstance(read_io.file.store, zarr.storage.ConsolidatedMetadataStore)