Skip to content

Commit 4a16508

Browse files
Adrian Damianbsipocz
authored andcommitted
Rework pytest options
1 parent cd1af23 commit 4a16508

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

astroquery/alma/tests/test_alma_remote.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# ALMA tests involving staging take too long, leading to travis timeouts
1919
# TODO: make this a configuration item
20-
SKIP_SLOW = False
20+
SKIP_SLOW = True
2121

2222
all_colnames = {'Project code', 'Source name', 'RA', 'Dec', 'Band',
2323
'Frequency resolution', 'Integration', 'Release date',

astroquery/conftest.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,14 @@ def pytest_configure(config):
4747
packagename = os.path.basename(os.path.dirname(__file__))
4848
TESTED_VERSIONS[packagename] = version
4949
TESTED_VERSIONS['astropy_helpers'] = astropy_helpers_version
50+
51+
def pytest_addoption(parser):
52+
parser.addoption(
53+
'--alma-site',
54+
action='store',
55+
default='almascience.org',
56+
help='ALMA site',
57+
choices={'almascience.nrao.edu',
58+
'almascience.eso.org',
59+
'almascience.nao.ac.jp'}
60+
)

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ astropy_header = true
3232
text_file_format = rst
3333
xfail_strict = true
3434
remote_data_strict = true
35-
#addopts = --doctest-rst
35+
addopts = --doctest-rst
3636
filterwarnings =
3737
error
3838
ignore: Experimental:UserWarning:

0 commit comments

Comments
 (0)