Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
from textwrap import dedent
from typing import TYPE_CHECKING, TypedDict, cast

import anndata as ad
import pytest
from packaging.version import Version

# just import for the IMPORTED check
import scanpy as _sc # noqa: F401
from scanpy._compat import pkg_version

if TYPE_CHECKING: # So editors understand that we’re using those fixtures
import os
Expand Down Expand Up @@ -155,3 +157,10 @@ def plt():
def exit_stack() -> Generator[ExitStack]:
with ExitStack() as stack:
yield stack


@pytest.fixture(autouse=True)
def anndata_settings():
if pkg_version("anndata") >= Version("0.12"):
ad.settings.auto_shard_zarr_v3 = True
ad.settings.zarr_write_format = 3
Loading