Skip to content

Commit 6295371

Browse files
Jorge Fernandez HernandezJorge Fernandez Hernandez
authored andcommitted
GAIASA-3522 method Gaia.load_data returns tuple
1 parent 12437d6 commit 6295371

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

‎astroquery/gaia/tests/test_gaiatap.py‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,6 +881,7 @@ def test_cone_search_and_changing_MAIN_GAIA_TABLE(mock_querier_async):
881881
assert "name_from_class" in job.parameters["query"]
882882

883883

884+
@pytest.mark.filterwarnings("ignore:")
884885
@pytest.mark.parametrize("overwrite_output_file", [True])
885886
def test_datalink_querier_load_data_vot_exception(mock_datalink_querier, overwrite_output_file):
886887
assert datetime.datetime.now(datetime.timezone.utc) == FAKE_TIME
@@ -924,6 +925,7 @@ def test_datalink_querier_load_data_vot_exception(mock_datalink_querier, overwri
924925
assert not os.path.exists(file_final)
925926

926927

928+
@pytest.mark.filterwarnings("ignore:")
927929
def test_datalink_querier_load_data_vot(mock_datalink_querier):
928930
result_dict, file_path = mock_datalink_querier.load_data(ids=[5937083312263887616], data_release='Gaia DR3',
929931
data_structure='DATAMODEL_STANDARD',
@@ -966,7 +968,7 @@ def test_datalink_querier_load_data_vot(mock_datalink_querier):
966968

967969
# check the returned output file path
968970

969-
971+
@pytest.mark.filterwarnings("ignore:")
970972
def test_datalink_querier_load_data_vot_no_dump_to_file(mock_datalink_querier):
971973

972974
result_dict, file_path = mock_datalink_querier.load_data(ids=[5937083312263887616], data_release='Gaia DR3',
@@ -980,7 +982,7 @@ def test_datalink_querier_load_data_vot_no_dump_to_file(mock_datalink_querier):
980982

981983
assert file_path is None
982984

983-
985+
@pytest.mark.filterwarnings("ignore:")
984986
def test_datalink_querier_load_data_ecsv(mock_datalink_querier_ecsv):
985987
result_dict, file_path = mock_datalink_querier_ecsv.load_data(ids=[5937083312263887616], data_release='Gaia DR3',
986988
data_structure='DATAMODEL_STANDARD',
@@ -1025,6 +1027,7 @@ def test_datalink_querier_load_data_ecsv(mock_datalink_querier_ecsv):
10251027
assert not os.path.exists(datalink_output)
10261028

10271029

1030+
@pytest.mark.filterwarnings("ignore:")
10281031
def test_datalink_querier_load_data_csv(mock_datalink_querier_csv):
10291032
result_dict, file_path = mock_datalink_querier_csv.load_data(ids=[5937083312263887616], data_release='Gaia DR3',
10301033
data_structure='DATAMODEL_STANDARD',
@@ -1114,6 +1117,7 @@ def test_datalink_querier_load_data_fits(mock_datalink_querier_fits):
11141117
assert not os.path.exists(datalink_output)
11151118

11161119

1120+
@pytest.mark.filterwarnings("ignore:")
11171121
def test_load_data_vot(monkeypatch, tmp_path, tmp_path_factory, patch_datetime_now):
11181122
assert datetime.datetime.now(datetime.timezone.utc) == FAKE_TIME
11191123

@@ -1189,6 +1193,7 @@ def load_data_monkeypatched(self, params_dict, output_file, verbose):
11891193
path.unlink()
11901194

11911195

1196+
@pytest.mark.filterwarnings("ignore:")
11921197
def test_load_data_csv(monkeypatch, tmp_path, tmp_path_factory, patch_datetime_now):
11931198
assert datetime.datetime.now(datetime.timezone.utc) == FAKE_TIME
11941199

@@ -1221,6 +1226,7 @@ def load_data_monkeypatched(self, params_dict, output_file, verbose):
12211226
path.unlink()
12221227

12231228

1229+
@pytest.mark.filterwarnings("ignore:")
12241230
def test_load_data_ecsv(monkeypatch, tmp_path, tmp_path_factory, patch_datetime_now):
12251231
assert datetime.datetime.now(datetime.timezone.utc) == FAKE_TIME
12261232

@@ -1253,6 +1259,7 @@ def load_data_monkeypatched(self, params_dict, output_file, verbose):
12531259
path.unlink()
12541260

12551261

1262+
@pytest.mark.filterwarnings("ignore:")
12561263
def test_load_data_linking_parameter(monkeypatch, tmp_path, patch_datetime_now):
12571264
assert datetime.datetime.now(datetime.timezone.utc) == FAKE_TIME
12581265

@@ -1285,6 +1292,7 @@ def load_data_monkeypatched(self, params_dict, output_file, verbose):
12851292
path.unlink()
12861293

12871294

1295+
@pytest.mark.filterwarnings("ignore:")
12881296
@pytest.mark.parametrize("linking_param", ['TRANSIT_ID', 'IMAGE_ID'])
12891297
def test_load_data_linking_parameter_with_values(monkeypatch, tmp_path, linking_param, patch_datetime_now):
12901298
assert datetime.datetime.now(datetime.timezone.utc) == FAKE_TIME

0 commit comments

Comments
 (0)