Skip to content

Commit e60ace9

Browse files
Merge pull request #665 from bsipocz/TST_vizier_updates
TST: updating tests for vizier changes
2 parents 70b1537 + ffe9d3b commit e60ace9

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

docs/registry/index.rst

+3-4
Original file line numberDiff line numberDiff line change
@@ -254,24 +254,23 @@ constraint on the description ``get_service(service_type='conesearch', keyword='
254254

255255
>>> for interface in voresource.list_interfaces():
256256
... print(interface)
257-
Interface(type='tap#aux', description='', url='http://tapvizier.cds.unistra.fr/TAPVizieR/tap')
258-
Interface(type='vr:webbrowser', description='', url='http://vizier.cds.unistra.fr/viz-bin/VizieR-2?-source=J/ApJ/727/14')
257+
Interface(type='tap#aux', description='', url='https://tapvizier.cds.unistra.fr/TAPVizieR/tap')
259258
Interface(type='conesearch', description='Cone search capability for table J/ApJ/727/14/table2 (AKARI IRC 3-24{mu}m, and Spitzer MIPS 24/70{mu}m photometry of Abell 2255 member galaxies)', url='https://vizier.cds.unistra.fr/viz-bin/conesearch/J/ApJ/727/14/table2?')
260259

261260
Or construct the service object directly from the list of interfaces with:
262261

263262
.. doctest-remote-data::
264263

265264
>>> voresource.list_interfaces()[0].to_service()
266-
TAPService(baseurl : 'http://tapvizier.cds.unistra.fr/TAPVizieR/tap', description : '')
265+
TAPService(baseurl : 'https://tapvizier.cds.unistra.fr/TAPVizieR/tap', description : '')
267266

268267
The list of interfaces can also be filtered to interfaces corresponding to services of a
269268
specific service type:
270269

271270
.. doctest-remote-data::
272271

273272
>>> voresource.list_interfaces("tap")
274-
[Interface(type='tap#aux', description='', url='http://tapvizier.cds.unistra.fr/TAPVizieR/tap')]
273+
[Interface(type='tap#aux', description='', url='https://tapvizier.cds.unistra.fr/TAPVizieR/tap')]
275274

276275
To operate TAP services, you need to know what tables make up a
277276
resource; you could construct a TAP service and access its ``tables``

pyvo/registry/tests/test_regtap.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ class _NS:
314314
315315
We need this here to let us conveniently construct _FakeResults.
316316
"""
317+
317318
def __init__(self, **kwargs):
318319
for k, v in kwargs.items():
319320
setattr(self, k, v)
@@ -326,6 +327,7 @@ class _FakeResults:
326327
It is constructed with a dictionary that should eventually be
327328
used as the mapping in the Record.
328329
"""
330+
329331
def __init__(self, valdict):
330332
self.fieldnames = list(valdict.keys())
331333
self.resultstable = _NS(array=_NS(data=[list(valdict.values())]))
@@ -727,7 +729,7 @@ def test_get_alt_identifier():
727729
rsc = _makeRegistryRecord(ivoid="ivo://cds.vizier/i/337")
728730
assert set(rsc.get_alt_identifiers()) == {
729731
'doi:10.26093/cds/vizier.1337',
730-
'bibcode:2016yCat.1337....0G'}
732+
}
731733

732734

733735
@pytest.mark.remote_data

0 commit comments

Comments
 (0)