Skip to content

Commit b0f9e3f

Browse files
Adrian DamianAdrian Damian
authored andcommitted
Rework after code review
1 parent 9c2c972 commit b0f9e3f

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

astroquery/cadc/core.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,8 +525,7 @@ def get_data_urls(self, query_result, include_auxiliaries=False):
525525
urlencode({'ID': pid_sublist,
526526
'REQUEST': 'downloads-only'}, True)))
527527
for service_def in datalink:
528-
if service_def.semantics in \
529-
['http://www.opencadc.org/caom2#pkg', '#package']:
528+
if service_def.semantics in ['http://www.opencadc.org/caom2#pkg', '#package']:
530529
# TODO http://www.openadc.org/caom2#pkg has been replaced
531530
# by "package". Removed it after CADC rolls out the change
532531
# package is an alternative for downloading multiple

astroquery/cadc/tests/test_cadctap_remote.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def test_authsession(self):
206206

207207
@pytest.mark.skipif(one_test, reason='One test mode')
208208
@pytest.mark.skipif(not pyvo_OK, reason='not pyvo_OK')
209-
@pytest.mark.skip('https://github.com/astropy/astroquery/issues/2325')
209+
@pytest.mark.xfail(reason='#2325')
210210
def test_get_images(self):
211211
cadc = Cadc()
212212
coords = '08h45m07.5s +54d18m00s'
@@ -254,7 +254,7 @@ def test_get_images_against_AS(self):
254254

255255
@pytest.mark.skipif(one_test, reason='One test mode')
256256
@pytest.mark.skipif(not pyvo_OK, reason='not pyvo_OK')
257-
@pytest.mark.skip('https://github.com/astropy/astroquery/issues/2325')
257+
@pytest.mark.xfail(reason='#2325')
258258
def test_get_images_async(self):
259259
cadc = Cadc()
260260
coords = '01h45m07.5s +23d18m00s'
@@ -315,7 +315,7 @@ def test_list_tables(self):
315315
reason='Requires real CADC certificate (CADC_CERT '
316316
'environment variable)')
317317
@pytest.mark.skipif(not pyvo_OK, reason='not pyvo_OK')
318-
@pytest.mark.skip('https://github.com/astropy/astroquery/issues/2325')
318+
@pytest.mark.xfail(reason='#2325')
319319
def test_list_jobs(self):
320320
cadc = Cadc()
321321
cadc.login(certificate_file=os.environ['CADC_CERT'])

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)