Skip to content

Commit

Permalink
Move test helpers (#267)
Browse files Browse the repository at this point in the history
* Move test helpers

* specify GPU marker

---------

Co-authored-by: Severin Dicks <[email protected]>
  • Loading branch information
flying-sheep and Intron7 authored Sep 26, 2024
1 parent 8ebce65 commit b304535
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,19 @@ lint.ignore = [
"src/rapids_singlecell/decoupler_gpu/_method_mlm.py" = ["PLR0917"]
"src/rapids_singlecell/decoupler_gpu/_method_wsum.py" = ["PLR0917"]


[tool.ruff.lint.isort]
known-first-party = ["rapids_singlecell"]
required-imports = ["from __future__ import annotations"]

[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
"--strict-markers",
]
markers = [
"gpu: tests that use a GPU (currently unused, but needs to be specified here as we import anndata.tests.helpers, which uses it)",
]

[tool.hatch.envs.hatch-test]
features = ["test", "rapids12"]

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_aggregated.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
import pandas as pd
import pytest
import scanpy as sc
from _helpers import ARRAY_TYPES_MEM
from anndata.tests.helpers import assert_equal
from packaging.version import Version
from scanpy._utils import _resolve_axis
from scanpy.datasets import pbmc3k_processed
from scipy.sparse import csr_matrix

import rapids_singlecell as rsc
from rapids_singlecell._testing import ARRAY_TYPES_MEM


@pytest.fixture
Expand Down

0 comments on commit b304535

Please sign in to comment.