Skip to content

Commit 3569a03

Browse files
jespinosaarbsipocz
authored andcommitted
TAP_CLIENT_ID replaced with tap.tap_client_id
1 parent 11fcb7c commit 3569a03

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

astroquery/gaia/tests/test_gaiatap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
import numpy as np
3333
from astroquery.utils import ASTROPY_LT_4_1
3434
from astroquery.utils.tap.xmlparser import utils
35-
from astroquery.utils.tap.core import TapPlus, TAP_CLIENT_ID
35+
from astroquery.utils.tap.core import TapPlus
3636
from astroquery.utils.tap import taputils
3737

3838

@@ -89,7 +89,7 @@ def mock_querier_async():
8989
"REQUEST": "doQuery",
9090
"LANG": "ADQL",
9191
"FORMAT": "votable",
92-
"tapclient": TAP_CLIENT_ID,
92+
"tapclient": tapplus.tap_client_id,
9393
"PHASE": "RUN",
9494
"QUERY": (
9595
"SELECT crossmatch_positional('schemaA','tableA','schemaB','tableB',1.0,"

astroquery/utils/tap/tests/test_tap.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
from astroquery.utils.tap.conn.tests.DummyConnHandler import DummyConnHandler
2525
from astroquery.utils.tap.conn.tests.DummyResponse import DummyResponse
26-
from astroquery.utils.tap.core import TapPlus, TAP_CLIENT_ID
26+
from astroquery.utils.tap.core import TapPlus
2727
from astroquery.utils.tap.xmlparser import utils
2828
from astroquery.utils.tap import taputils
2929

@@ -164,7 +164,7 @@ def test_launch_sync_job():
164164
"REQUEST": "doQuery",
165165
"LANG": "ADQL",
166166
"FORMAT": "votable",
167-
"tapclient": str(TAP_CLIENT_ID),
167+
"tapclient": str(tap.tap_client_id),
168168
"PHASE": "RUN",
169169
"QUERY": str(q)}
170170
sortedKey = taputils.taputil_create_sorted_dict_key(dictTmp)
@@ -228,7 +228,7 @@ def test_launch_sync_job_redirect():
228228
"REQUEST": "doQuery",
229229
"LANG": "ADQL",
230230
"FORMAT": "votable",
231-
"tapclient": str(TAP_CLIENT_ID),
231+
"tapclient": str(tap.tap_client_id),
232232
"PHASE": "RUN",
233233
"QUERY": str(q)}
234234
sortedKey = taputils.taputil_create_sorted_dict_key(dictTmp)
@@ -310,7 +310,7 @@ def test_launch_async_job():
310310
"REQUEST": "doQuery",
311311
"LANG": "ADQL",
312312
"FORMAT": "votable",
313-
"tapclient": str(TAP_CLIENT_ID),
313+
"tapclient": str(tap.tap_client_id),
314314
"PHASE": "RUN",
315315
"QUERY": str(query)}
316316
sortedKey = taputils.taputil_create_sorted_dict_key(dictTmp)
@@ -393,7 +393,7 @@ def test_start_job():
393393
"REQUEST": "doQuery",
394394
"LANG": "ADQL",
395395
"FORMAT": "votable",
396-
"tapclient": str(TAP_CLIENT_ID),
396+
"tapclient": str(tap.tap_client_id),
397397
"QUERY": str(query)}
398398
sortedKey = taputils.taputil_create_sorted_dict_key(dictTmp)
399399
req = f"async?{sortedKey}"
@@ -451,7 +451,7 @@ def test_abort_job():
451451
"LANG": "ADQL",
452452
"FORMAT": "votable",
453453
"MAXREC": 10,
454-
"tapclient": str(TAP_CLIENT_ID),
454+
"tapclient": str(tap.tap_client_id),
455455
"QUERY": str(query)}
456456
sortedKey = taputils.taputil_create_sorted_dict_key(dictTmp)
457457
req = f"async?{sortedKey}"
@@ -485,7 +485,7 @@ def test_job_parameters():
485485
"LANG": "ADQL",
486486
"FORMAT": "votable",
487487
"MAXREC": 10,
488-
"tapclient": str(TAP_CLIENT_ID),
488+
"tapclient": str(tap.tap_client_id),
489489
"QUERY": str(query)}
490490
sortedKey = taputils.taputil_create_sorted_dict_key(dictTmp)
491491
req = f"async?{sortedKey}"

0 commit comments

Comments
 (0)