Skip to content

Commit 64338ba

Browse files
committed
Refactor: Fix Gaia where changes to utils breaks Gaia
1 parent 6f637f1 commit 64338ba

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

astroquery/gaia/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -912,7 +912,7 @@ def get_status_messages(self):
912912
try:
913913
subContext = self.GAIA_MESSAGES
914914
connHandler = self._TapPlus__getconnhandler()
915-
response = connHandler.execute_tapget(subContext, False)
915+
response = connHandler.execute_tapget(subContext, verbose=False)
916916
if response.status == 200:
917917
if isinstance(response, Iterable):
918918
for line in response:

astroquery/gaia/tests/test_gaiatap.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def column_attrs():
5454
@pytest.fixture(scope="module")
5555
def mock_querier():
5656
conn_handler = DummyConnHandler()
57-
tapplus = TapPlus("http://test:1111/tap", connhandler=conn_handler)
57+
tapplus = TapPlus(url="http://test:1111/tap", connhandler=conn_handler)
5858
launch_response = DummyResponse(200)
5959
launch_response.set_data(method="POST", body=JOB_DATA)
6060
# The query contains decimals: default response is more robust.
@@ -65,7 +65,7 @@ def mock_querier():
6565
@pytest.fixture(scope="module")
6666
def mock_querier_async():
6767
conn_handler = DummyConnHandler()
68-
tapplus = TapPlus("http://test:1111/tap", connhandler=conn_handler)
68+
tapplus = TapPlus(url="http://test:1111/tap", connhandler=conn_handler)
6969
jobid = "12345"
7070

7171
launch_response = DummyResponse(303)
@@ -105,7 +105,7 @@ def test_show_message():
105105
tableRequest = 'notification?action=GetNotifications'
106106
connHandler.set_response(tableRequest, dummy_response)
107107

108-
tapplus = TapPlus("http://test:1111/tap", connhandler=connHandler)
108+
tapplus = TapPlus(url="http://test:1111/tap", connhandler=connHandler)
109109
GaiaClass(tap_plus_conn_handler=connHandler, datalink_handler=tapplus, show_server_messages=True)
110110

111111

@@ -258,7 +258,7 @@ def test_cross_match_missing_mandatory_kwarg(cross_match_kwargs, missing_kwarg):
258258
@patch.object(TapPlus, 'login')
259259
def test_login(mock_login):
260260
conn_handler = DummyConnHandler()
261-
tapplus = TapPlus("http://test:1111/tap", connhandler=conn_handler)
261+
tapplus = TapPlus(url="http://test:1111/tap", connhandler=conn_handler)
262262
tap = GaiaClass(tap_plus_conn_handler=conn_handler, datalink_handler=tapplus, show_server_messages=False)
263263
tap.login(user="user", password="password")
264264
assert (mock_login.call_count == 2)
@@ -271,7 +271,7 @@ def test_login(mock_login):
271271
@patch.object(TapPlus, 'login')
272272
def test_login_gui(mock_login_gui, mock_login):
273273
conn_handler = DummyConnHandler()
274-
tapplus = TapPlus("http://test:1111/tap", connhandler=conn_handler)
274+
tapplus = TapPlus(url="http://test:1111/tap", connhandler=conn_handler)
275275
tap = GaiaClass(tap_plus_conn_handler=conn_handler, datalink_handler=tapplus, show_server_messages=False)
276276
tap.login_gui()
277277
assert (mock_login_gui.call_count == 1)
@@ -283,7 +283,7 @@ def test_login_gui(mock_login_gui, mock_login):
283283
@patch.object(TapPlus, 'logout')
284284
def test_logout(mock_logout):
285285
conn_handler = DummyConnHandler()
286-
tapplus = TapPlus("http://test:1111/tap", connhandler=conn_handler)
286+
tapplus = TapPlus(url="http://test:1111/tap", connhandler=conn_handler)
287287
tap = GaiaClass(tap_plus_conn_handler=conn_handler, datalink_handler=tapplus, show_server_messages=False)
288288
tap.logout()
289289
assert (mock_logout.call_count == 2)

0 commit comments

Comments
 (0)