Skip to content

Commit 43900f1

Browse files
committed
ENH: Adding -R as a short version for —remote-data
The option was available in astropy for a long time, and then was added to remotedata, but had to be removed due to a clash with pytest-leaks
1 parent bde9728 commit 43900f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pytest_astropy/plugin.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ def pytest_addoption(parser):
1919
default=False,
2020
help="run memory intensive tests",
2121
)
22+
parser.addoption(
23+
"-R", nargs="?", const='any', default='none',
24+
help="run tests with online data, requires pytest-remotedata",
25+
dest="remote_data", choices=['astropy', 'any', 'github', 'none'])
2226

2327

2428
def pytest_configure(config):

0 commit comments

Comments
 (0)