Skip to content

Commit 39e0bc4

Browse files
authored
Merge pull request #55 from bsipocz/ENH_add_R_option
ENH: adding -R option
2 parents bde9728 + ef05ed4 commit 39e0bc4

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

CHANGES.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
you can install it separately. See https://github.com/astropy/pytest-openfiles/pull/44
66
for more information. [#52]
77

8+
- - ``-R`` is added as a short version for the command-line option
9+
``--remote-data``. [#55]
10+
11+
812
0.10.0 (2022-04-21)
913
===================
1014

README.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ markers are not run by default, can be run with the other tests with
1616
``--run-slow`` and ``--run-hugemem``, and can be run separately with ``-m slow``
1717
and ``-m hugemem``.
1818

19+
The package also provides the short option ``-R`` for ``--remote-data``.
20+
1921
.. _astropy: https://docs.astropy.org/en/latest/
2022
.. _affiliated packages: https://astropy.org/affiliated
2123

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):

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ setup_requires = setuptools_scm
3232
install_requires =
3333
pytest>=4.6
3434
pytest-doctestplus>=0.11.0
35-
pytest-remotedata>=0.3.1
35+
pytest-remotedata>=0.3.1,!=0.4.0
3636
pytest-astropy-header>=0.1.2
3737
pytest-arraydiff>=0.1
3838
pytest-filter-subpackage>=0.1

0 commit comments

Comments
 (0)