Skip to content
Draft
Show file tree
Hide file tree
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
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,14 @@ matrix.deps.dependency-groups = [

[tool.hatch.envs.test.scripts]
run-coverage = [
"coverage run --source=src -m pytest --junitxml=junit.xml -o junit_family=legacy {args:}",
"coverage run --source=src -m pytest -n auto --junitxml=junit.xml -o junit_family=legacy {args:}",
"coverage xml",
]
run-coverage-html = [
"coverage run --source=src -m pytest {args:}",
"coverage run --source=src -m pytest -n auto {args:}",
"coverage html",
]
run = "pytest --ignore tests/benchmarks"
run = "pytest -n auto --ignore tests/benchmarks {args:}"
run-verbose = "run-coverage --verbose"
run-mypy = "mypy src"
run-hypothesis = [
Expand Down Expand Up @@ -413,6 +413,7 @@ addopts = [
"--benchmark-disable", # benchmark routines run as tests without benchmarking instrumentation
"--durations", "10",
"-ra", "--strict-config", "--strict-markers",
"--dist", "loadgroup",
]
filterwarnings = [
"error",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_api/test_synchronous.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def test_docstrings_match(callable_name: str) -> None:
),
),
],
ids=str,
ids=["store_path-create_array_group", "store_path-create", "array_params-create_array_dataset"],
)
def test_docstring_consistent_parameters(
parameter_name: str, array_creation_routines: tuple[Callable[[Any], Any], ...]
Expand Down
3 changes: 3 additions & 0 deletions tests/test_store/test_fsspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
pytest.mark.filterwarnings(
"ignore:Exception ignored in.*finalize object.*:pytest.PytestUnraisableExceptionWarning"
),
# All S3 tests share a module-scoped moto server on a fixed port,
# so they must run on a single xdist worker to avoid port conflicts.
pytest.mark.xdist_group(name="s3"),
]

fsspec = pytest.importorskip("fsspec")
Expand Down