Skip to content
Merged
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ to [Semantic Versioning]. The full commit history is available in the [commit lo
#### Added

- Add support for rapids-singlecell, {pr}`3811`.
- Add scvi-tools MCP package that gives any MCP-compatible LLM access to scvi-tools knowledge

#### Fixed

Expand Down
68 changes: 68 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
def pytest_addoption(parser):
"""Register custom CLI options for the test suite."""
parser.addoption(
"--internet-tests",
action="store_true",
default=False,
help="Run tests that retrieve stuff from the internet. This increases test time.",
)
parser.addoption(
"--multigpu-tests",
action="store_true",
default=False,
help="Run tests that are designed for multiGPU.",
)
parser.addoption(
"--autotune-tests",
action="store_true",
default=False,
help="Run tests that are designed for Ray Autotune.",
)
parser.addoption(
"--mlflow-tests",
action="store_true",
default=False,
help="Run tests that are designed for MLFlow.",
)
parser.addoption(
"--custom-dataloader-tests",
action="store_true",
default=False,
help="Run tests that deal with custom dataloaders. This increases test time.",
)
parser.addoption(
"--optional",
action="store_true",
default=False,
help="Run tests that are optional.",
)
parser.addoption(
"--jax",
action="store_true",
default=False,
help="Run tests that are Jax adopted.",
)
parser.addoption(
"--accelerator",
action="store",
default="cpu",
help="Option to specify which accelerator to use for tests.",
)
parser.addoption(
"--devices",
action="store",
default="auto",
help="Option to specify which devices to use for tests.",
)
parser.addoption(
"--seed",
action="store",
default=0,
help="Option to specify which scvi-tools seed to use for tests.",
)
parser.addoption(
"--private",
action="store_true",
default=False,
help="Run tests that are private.",
)
70 changes: 0 additions & 70 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,76 +6,6 @@
from tests.data.utils import generic_setup_adata_manager


def pytest_addoption(parser):
"""Docstring for pytest_addoption."""
parser.addoption(
"--internet-tests",
action="store_true",
default=False,
help="Run tests that retrieve stuff from the internet. This increases test time.",
)
parser.addoption(
"--multigpu-tests",
action="store_true",
default=False,
help="Run tests that are designed for multiGPU.",
)
parser.addoption(
"--autotune-tests",
action="store_true",
default=False,
help="Run tests that are designed for Ray Autotune.",
)
parser.addoption(
"--mlflow-tests",
action="store_true",
default=False,
help="Run tests that are designed for MLFlow.",
)
parser.addoption(
"--custom-dataloader-tests",
action="store_true",
default=False,
help="Run tests that deals with custom dataloaders. This increases test time.",
)
parser.addoption(
"--optional",
action="store_true",
default=False,
help="Run tests that are optional.",
)
parser.addoption(
"--jax",
action="store_true",
default=False,
help="Run tests that are Jax adopted.",
)
parser.addoption(
"--accelerator",
action="store",
default="cpu",
help="Option to specify which accelerator to use for tests.",
)
parser.addoption(
"--devices",
action="store",
default="auto",
help="Option to specify which devices to use for tests.",
)
parser.addoption(
"--seed",
action="store",
default=0,
help="Option to specify which scvi-tools seed to use for tests.",
)
parser.addoption(
"--private",
action="store_true",
default=False,
help="Run tests that are private.",
)


def pytest_configure(config):
"""Docstring for pytest_configure."""
config.addinivalue_line("markers", "optional: mark test as optional.")
Expand Down
Loading