@@ -56,12 +56,12 @@ def test_show_message(self):
5656 headers = None )
5757 connHandler .set_default_response (dummy_response )
5858
59- # show_messages
59+ # show_server_messages
6060 tableRequest = 'notification?action=GetNotifications'
6161 connHandler .set_response (tableRequest , dummy_response )
6262
6363 tapplus = TapPlus ("http://test:1111/tap" , connhandler = connHandler )
64- tap = GaiaClass (connHandler , tapplus , show_messages = True )
64+ tap = GaiaClass (connHandler , tapplus , show_server_messages = True )
6565
6666 def test_query_object (self ):
6767 conn_handler = DummyConnHandler ()
@@ -79,12 +79,12 @@ def test_query_object(self):
7979 headers = None )
8080 conn_handler .set_default_response (dummy_response )
8181
82- # show_messages
82+ # show_server_messages
8383 tableRequest = 'notification?action=GetNotifications'
8484 conn_handler .set_response (tableRequest , dummy_response )
8585
8686 tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
87- tap = GaiaClass (conn_handler , tapplus , show_messages = True )
87+ tap = GaiaClass (conn_handler , tapplus , show_server_messages = True )
8888 # Launch response: we use default response because the query contains
8989 # decimals
9090 response_launch_job = DummyResponse ()
@@ -165,7 +165,7 @@ def test_query_object(self):
165165 def test_query_object_async (self ):
166166 conn_handler = DummyConnHandler ()
167167 tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
168- tap = GaiaClass (conn_handler , tapplus , show_messages = False )
168+ tap = GaiaClass (conn_handler , tapplus , show_server_messages = False )
169169 jobid = '12345'
170170 # Launch response
171171 response_launch_job = DummyResponse ()
@@ -260,7 +260,7 @@ def test_query_object_async(self):
260260 def test_cone_search_sync (self ):
261261 conn_handler = DummyConnHandler ()
262262 tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
263- tap = GaiaClass (conn_handler , tapplus , show_messages = False )
263+ tap = GaiaClass (conn_handler , tapplus , show_server_messages = False )
264264 # Launch response: we use default response because the query contains
265265 # decimals
266266 response_launch_job = DummyResponse ()
@@ -313,7 +313,7 @@ def test_cone_search_sync(self):
313313 def test_cone_search_async (self ):
314314 conn_handler = DummyConnHandler ()
315315 tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
316- tap = GaiaClass (conn_handler , tapplus , show_messages = False )
316+ tap = GaiaClass (conn_handler , tapplus , show_server_messages = False )
317317 jobid = '12345'
318318 # Launch response
319319 response_launch_job = DummyResponse ()
@@ -420,7 +420,7 @@ def __check_results_column(self, results, column_name, description, unit,
420420
421421 def test_load_data (self ):
422422 dummy_handler = DummyTapHandler ()
423- tap = GaiaClass (dummy_handler , dummy_handler , show_messages = False )
423+ tap = GaiaClass (dummy_handler , dummy_handler , show_server_messages = False )
424424
425425 ids = "1,2,3,4"
426426 retrieval_type = "epoch_photometry"
@@ -459,7 +459,7 @@ def test_load_data(self):
459459
460460 def test_get_datalinks (self ):
461461 dummy_handler = DummyTapHandler ()
462- tap = GaiaClass (dummy_handler , dummy_handler , show_messages = False )
462+ tap = GaiaClass (dummy_handler , dummy_handler , show_server_messages = False )
463463 ids = ["1" , "2" , "3" , "4" ]
464464 verbose = True
465465 parameters = {}
@@ -471,7 +471,7 @@ def test_get_datalinks(self):
471471 def test_xmatch (self ):
472472 conn_handler = DummyConnHandler ()
473473 tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
474- tap = GaiaClass (conn_handler , tapplus , show_messages = False )
474+ tap = GaiaClass (conn_handler , tapplus , show_server_messages = False )
475475 jobid = '12345'
476476 # Launch response
477477 response_launch_job = DummyResponse ()
@@ -619,7 +619,7 @@ def test_xmatch(self):
619619 def test_login (self , mock_login ):
620620 conn_handler = DummyConnHandler ()
621621 tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
622- tap = GaiaClass (conn_handler , tapplus , show_messages = False )
622+ tap = GaiaClass (conn_handler , tapplus , show_server_messages = False )
623623 tap .login ("user" , "password" )
624624 assert (mock_login .call_count == 2 )
625625 mock_login .side_effect = HTTPError ("Login error" )
@@ -631,7 +631,7 @@ def test_login(self, mock_login):
631631 def test_login_gui (self , mock_login_gui , mock_login ):
632632 conn_handler = DummyConnHandler ()
633633 tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
634- tap = GaiaClass (conn_handler , tapplus , show_messages = False )
634+ tap = GaiaClass (conn_handler , tapplus , show_server_messages = False )
635635 tap .login_gui ()
636636 assert (mock_login_gui .call_count == 1 )
637637 mock_login_gui .side_effect = HTTPError ("Login error" )
@@ -642,7 +642,7 @@ def test_login_gui(self, mock_login_gui, mock_login):
642642 def test_logout (self , mock_logout ):
643643 conn_handler = DummyConnHandler ()
644644 tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
645- tap = GaiaClass (conn_handler , tapplus , show_messages = False )
645+ tap = GaiaClass (conn_handler , tapplus , show_server_messages = False )
646646 tap .logout ()
647647 assert (mock_logout .call_count == 2 )
648648 mock_logout .side_effect = HTTPError ("Login error" )
0 commit comments