From 93b389fb9826b0cf9f0374ab877df7a1beb05d1e Mon Sep 17 00:00:00 2001 From: mavaylon1 Date: Mon, 29 Jul 2024 13:51:09 -0700 Subject: [PATCH] notes --- tests/unit/test_zarrio.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_zarrio.py b/tests/unit/test_zarrio.py index 910ac68..7c9f3d6 100644 --- a/tests/unit/test_zarrio.py +++ b/tests/unit/test_zarrio.py @@ -187,6 +187,14 @@ def test_force_open_without_consolidated_fails(self): class TestDimensionLabels(BuildDatasetShapeMixin): + """ + This is to test setting the dimension_labels as a zarr attribute '_ARRAY_DIMENSIONS'. + + Workflow: + i) We need to define a `get_dataset_inc_spec` to set the dim in the spec (via BuildDatasetShapeMixin) + ii) Create and write a BarDataHolder with a BarData. + iii) Read and check that the _ARRAY_DIMENSIONS attribute is set. + """ def tearDown(self): shutil.rmtree(self.store) @@ -214,4 +222,3 @@ def test_build(self): with ZarrIO(self.store, manager=self.manager, mode='r') as io: file = io.read() self.assertEqual(file.bar_datas[0].data.attrs['_ARRAY_DIMENSIONS'], ['a', 'b']) -