diff --git a/tests/test_backed_sparse.py b/tests/test_backed_sparse.py index 125b0e829..64f80cc90 100644 --- a/tests/test_backed_sparse.py +++ b/tests/test_backed_sparse.py @@ -47,6 +47,7 @@ def diskfmt(request): zarr_metadata_key = ".zarray" if is_zarr_v2() else "zarr.json" zarr_separator = "" if is_zarr_v2() else "/c" + @pytest.fixture def ondisk_equivalent_adata( tmp_path: Path, diskfmt: Literal["h5ad", "zarr"] diff --git a/tests/test_io_dispatched.py b/tests/test_io_dispatched.py index b11e01963..98d1a04a8 100644 --- a/tests/test_io_dispatched.py +++ b/tests/test_io_dispatched.py @@ -8,7 +8,7 @@ import anndata as ad from anndata._io.zarr import open_write_group -from anndata.compat import SpArray, is_zarr_v2, ZarrGroup +from anndata.compat import SpArray, ZarrGroup, is_zarr_v2 from anndata.experimental import read_dispatched, write_dispatched from anndata.tests.helpers import assert_equal, gen_adata @@ -163,7 +163,7 @@ def h5ad_writer(func, store, k, elem, dataset_kwargs, iospec): func(store, k, elem, dataset_kwargs=dataset_kwargs) def zarr_writer(func, store, k, elem, dataset_kwargs, iospec): - zarr_write_keys.append(f"{store.name.strip("/")}/{k.strip("/")}".strip("/")) + zarr_write_keys.append(f"{store.name.strip('/')}/{k.strip('/')}".strip("/")) func(store, k, elem, dataset_kwargs=dataset_kwargs) def h5ad_reader(func, elem_name: str, elem, iospec):