Skip to content

Commit

Permalink
move zarr import in test_zarr
Browse files Browse the repository at this point in the history
  • Loading branch information
norlandrhagen committed Jan 9, 2025
1 parent d61e593 commit 9edf706
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion virtualizarr/tests/test_readers/test_zarr.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import numpy as np
import pytest
import zarr

from virtualizarr import open_virtual_dataset
from virtualizarr.manifests import ManifestArray
Expand Down Expand Up @@ -49,6 +48,8 @@ def test_drop_variables(self, zarr_store, drop_variables=["air"]):
assert len(vds.data_vars) == 0

def test_virtual_dataset_zarr_attrs(self, zarr_store):
import zarr

zg = zarr.open_group(zarr_store)
vds = open_virtual_dataset(filepath=zarr_store, indexes={})
zg_metadata_dict = zg.metadata.to_dict()
Expand Down

0 comments on commit 9edf706

Please sign in to comment.