@@ -44,7 +44,7 @@ class TestTap:
44
44
def test_query_object (self ):
45
45
conn_handler = DummyConnHandler ()
46
46
tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
47
- tap = GaiaClass (conn_handler , tapplus )
47
+ tap = GaiaClass (conn_handler , tapplus , show_messages = False )
48
48
# Launch response: we use default response because the query contains
49
49
# decimals
50
50
response_launch_job = DummyResponse ()
@@ -125,7 +125,7 @@ def test_query_object(self):
125
125
def test_query_object_async (self ):
126
126
conn_handler = DummyConnHandler ()
127
127
tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
128
- tap = GaiaClass (conn_handler , tapplus )
128
+ tap = GaiaClass (conn_handler , tapplus , show_messages = False )
129
129
jobid = '12345'
130
130
# Launch response
131
131
response_launch_job = DummyResponse ()
@@ -220,7 +220,7 @@ def test_query_object_async(self):
220
220
def test_cone_search_sync (self ):
221
221
conn_handler = DummyConnHandler ()
222
222
tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
223
- tap = GaiaClass (conn_handler , tapplus )
223
+ tap = GaiaClass (conn_handler , tapplus , show_messages = False )
224
224
# Launch response: we use default response because the query contains
225
225
# decimals
226
226
response_launch_job = DummyResponse ()
@@ -273,7 +273,7 @@ def test_cone_search_sync(self):
273
273
def test_cone_search_async (self ):
274
274
conn_handler = DummyConnHandler ()
275
275
tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
276
- tap = GaiaClass (conn_handler , tapplus )
276
+ tap = GaiaClass (conn_handler , tapplus , show_messages = False )
277
277
jobid = '12345'
278
278
# Launch response
279
279
response_launch_job = DummyResponse ()
@@ -380,7 +380,7 @@ def __check_results_column(self, results, column_name, description, unit,
380
380
381
381
def test_load_data (self ):
382
382
dummy_handler = DummyTapHandler ()
383
- tap = GaiaClass (dummy_handler , dummy_handler )
383
+ tap = GaiaClass (dummy_handler , dummy_handler , show_messages = False )
384
384
385
385
ids = "1,2,3,4"
386
386
retrieval_type = "epoch_photometry"
@@ -395,7 +395,7 @@ def test_load_data(self):
395
395
output_file = os .path .abspath (path_to_end_with )
396
396
397
397
params_dict = {}
398
- params_dict ['VALID_DATA' ] = "true "
398
+ params_dict ['VALID_DATA' ] = "false "
399
399
params_dict ['ID' ] = ids
400
400
params_dict ['FORMAT' ] = str (format )
401
401
params_dict ['RETRIEVAL_TYPE' ] = str (retrieval_type )
@@ -419,7 +419,7 @@ def test_load_data(self):
419
419
420
420
def test_get_datalinks (self ):
421
421
dummy_handler = DummyTapHandler ()
422
- tap = GaiaClass (dummy_handler , dummy_handler )
422
+ tap = GaiaClass (dummy_handler , dummy_handler , show_messages = False )
423
423
ids = ["1" , "2" , "3" , "4" ]
424
424
verbose = True
425
425
parameters = {}
@@ -431,7 +431,7 @@ def test_get_datalinks(self):
431
431
def test_xmatch (self ):
432
432
conn_handler = DummyConnHandler ()
433
433
tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
434
- tap = GaiaClass (conn_handler , tapplus )
434
+ tap = GaiaClass (conn_handler , tapplus , show_messages = False )
435
435
jobid = '12345'
436
436
# Launch response
437
437
response_launch_job = DummyResponse ()
@@ -579,7 +579,7 @@ def test_xmatch(self):
579
579
def test_login (self , mock_login ):
580
580
conn_handler = DummyConnHandler ()
581
581
tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
582
- tap = GaiaClass (conn_handler , tapplus )
582
+ tap = GaiaClass (conn_handler , tapplus , show_messages = False )
583
583
tap .login ("user" , "password" )
584
584
assert (mock_login .call_count == 2 )
585
585
mock_login .side_effect = HTTPError ("Login error" )
@@ -591,7 +591,7 @@ def test_login(self, mock_login):
591
591
def test_login_gui (self , mock_login_gui , mock_login ):
592
592
conn_handler = DummyConnHandler ()
593
593
tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
594
- tap = GaiaClass (conn_handler , tapplus )
594
+ tap = GaiaClass (conn_handler , tapplus , show_messages = False )
595
595
tap .login_gui ()
596
596
assert (mock_login_gui .call_count == 1 )
597
597
mock_login_gui .side_effect = HTTPError ("Login error" )
@@ -602,7 +602,7 @@ def test_login_gui(self, mock_login_gui, mock_login):
602
602
def test_logout (self , mock_logout ):
603
603
conn_handler = DummyConnHandler ()
604
604
tapplus = TapPlus ("http://test:1111/tap" , connhandler = conn_handler )
605
- tap = GaiaClass (conn_handler , tapplus )
605
+ tap = GaiaClass (conn_handler , tapplus , show_messages = False )
606
606
tap .logout ()
607
607
assert (mock_logout .call_count == 2 )
608
608
mock_logout .side_effect = HTTPError ("Login error" )
0 commit comments