@@ -56,12 +56,12 @@ def test_show_message(self):
56
56
headers = None )
57
57
connHandler .set_default_response (dummy_response )
58
58
59
- # show_messages
59
+ # show_server_messages
60
60
tableRequest = 'notification?action=GetNotifications'
61
61
connHandler .set_response (tableRequest , dummy_response )
62
62
63
63
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 )
65
65
66
66
def test_query_object (self ):
67
67
conn_handler = DummyConnHandler ()
@@ -79,12 +79,12 @@ def test_query_object(self):
79
79
headers = None )
80
80
conn_handler .set_default_response (dummy_response )
81
81
82
- # show_messages
82
+ # show_server_messages
83
83
tableRequest = 'notification?action=GetNotifications'
84
84
conn_handler .set_response (tableRequest , dummy_response )
85
85
86
86
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 )
88
88
# Launch response: we use default response because the query contains
89
89
# decimals
90
90
response_launch_job = DummyResponse ()
@@ -165,7 +165,7 @@ def test_query_object(self):
165
165
def test_query_object_async (self ):
166
166
conn_handler = DummyConnHandler ()
167
167
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 )
169
169
jobid = '12345'
170
170
# Launch response
171
171
response_launch_job = DummyResponse ()
@@ -260,7 +260,7 @@ def test_query_object_async(self):
260
260
def test_cone_search_sync (self ):
261
261
conn_handler = DummyConnHandler ()
262
262
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 )
264
264
# Launch response: we use default response because the query contains
265
265
# decimals
266
266
response_launch_job = DummyResponse ()
@@ -313,7 +313,7 @@ def test_cone_search_sync(self):
313
313
def test_cone_search_async (self ):
314
314
conn_handler = DummyConnHandler ()
315
315
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 )
317
317
jobid = '12345'
318
318
# Launch response
319
319
response_launch_job = DummyResponse ()
@@ -420,7 +420,7 @@ def __check_results_column(self, results, column_name, description, unit,
420
420
421
421
def test_load_data (self ):
422
422
dummy_handler = DummyTapHandler ()
423
- tap = GaiaClass (dummy_handler , dummy_handler , show_messages = False )
423
+ tap = GaiaClass (dummy_handler , dummy_handler , show_server_messages = False )
424
424
425
425
ids = "1,2,3,4"
426
426
retrieval_type = "epoch_photometry"
@@ -459,7 +459,7 @@ def test_load_data(self):
459
459
460
460
def test_get_datalinks (self ):
461
461
dummy_handler = DummyTapHandler ()
462
- tap = GaiaClass (dummy_handler , dummy_handler , show_messages = False )
462
+ tap = GaiaClass (dummy_handler , dummy_handler , show_server_messages = False )
463
463
ids = ["1" , "2" , "3" , "4" ]
464
464
verbose = True
465
465
parameters = {}
@@ -471,7 +471,7 @@ def test_get_datalinks(self):
471
471
def test_xmatch (self ):
472
472
conn_handler = DummyConnHandler ()
473
473
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 )
475
475
jobid = '12345'
476
476
# Launch response
477
477
response_launch_job = DummyResponse ()
@@ -619,7 +619,7 @@ def test_xmatch(self):
619
619
def test_login (self , mock_login ):
620
620
conn_handler = DummyConnHandler ()
621
621
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 )
623
623
tap .login ("user" , "password" )
624
624
assert (mock_login .call_count == 2 )
625
625
mock_login .side_effect = HTTPError ("Login error" )
@@ -631,7 +631,7 @@ def test_login(self, mock_login):
631
631
def test_login_gui (self , mock_login_gui , mock_login ):
632
632
conn_handler = DummyConnHandler ()
633
633
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 )
635
635
tap .login_gui ()
636
636
assert (mock_login_gui .call_count == 1 )
637
637
mock_login_gui .side_effect = HTTPError ("Login error" )
@@ -642,7 +642,7 @@ def test_login_gui(self, mock_login_gui, mock_login):
642
642
def test_logout (self , mock_logout ):
643
643
conn_handler = DummyConnHandler ()
644
644
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 )
646
646
tap .logout ()
647
647
assert (mock_logout .call_count == 2 )
648
648
mock_logout .side_effect = HTTPError ("Login error" )
0 commit comments