-
Notifications
You must be signed in to change notification settings - Fork 472
Expand file tree
/
Copy pathconftest.py
More file actions
62 lines (62 loc) · 1.74 KB
/
Copy pathconftest.py
File metadata and controls
62 lines (62 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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(
"--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.",
)