Skip to content

Commit f46f45e

Browse files
committed
Deprecate --ci instead
1 parent 1c1c4ab commit f46f45e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

conftest.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from functools import lru_cache
22
from pathlib import Path
3+
import argparse
34
import math
45
import warnings
56
import os
@@ -55,6 +56,7 @@ def pytest_addoption(parser):
5556
help="disable testing functions with output shapes dependent on input",
5657
)
5758
# CI
59+
parser.addoption("--ci", action="store_true", help=argparse.SUPPRESS ) # deprecated
5860
parser.addoption(
5961
"--skips-file",
6062
action="store",
@@ -98,6 +100,12 @@ def pytest_configure(config):
98100
settings.load_profile("xp_override")
99101
else:
100102
settings.load_profile("xp_default")
103+
# CI
104+
if config.getoption("--ci"):
105+
warnings.warn(
106+
"Custom pytest option --ci is deprecated as any tests not for CI "
107+
"are now located in meta_tests/"
108+
)
101109

102110

103111
@lru_cache

0 commit comments

Comments
 (0)