Skip to content

Commit

Permalink
assert
Browse files Browse the repository at this point in the history
  • Loading branch information
mavaylon1 committed Dec 1, 2023
1 parent f7f2f37 commit 603f7cd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/unit/test_zarrio.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
import zarr
from hdmf.testing import TestCase
from hdmf_zarr.backend import ZarrIO
import os


CUR_DIR = os.path.dirname(os.path.realpath(__file__))


######################################################
Expand Down Expand Up @@ -137,13 +141,15 @@ class TestConsolidateMetadata(TestCase):
def test_get_store_path_shallow(self):
store = DirectoryStore('tests/unit/example.zarr')
path = ZarrIO._ZarrIO__get_store_path(store)
# assert
expected_path = os.path.normpath(os.path.join(CUR_DIR, 'example.zarr'))
self.assertEqual(path, expected_path)

def test_get_store_path_deep(self):
zarr_obj = zarr.open_consolidated('tests/unit/test_consolidate.zarr', mode='r')
store = zarr_obj.store
path = ZarrIO._ZarrIO__get_store_path(store)
# assert
expected_path = os.path.normpath(os.path.join(CUR_DIR, 'test_consolidate.zarr'))
self.assertEqual(path, expected_path)

# def test_warning_consolidate_metadata(self):
# pass
Expand Down

0 comments on commit 603f7cd

Please sign in to comment.