Skip to content

Commit db87123

Browse files
Jorge Fernandez HernandezJorge Fernandez Hernandez
authored andcommitted
GAIAMNGT-1700 Update test
1 parent 510fe02 commit db87123

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

astroquery/gaia/tests/test_gaiatap.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,6 +1148,15 @@ def test_load_data_linking_parameter_with_values(monkeypatch, tmp_path, linking_
11481148
path.write_bytes(zip_bytes)
11491149

11501150
def load_data_monkeypatched(self, params_dict, output_file, verbose):
1151+
direc = os.getcwd()
1152+
files = os.listdir(direc)
1153+
# Filtering only the files.
1154+
files = [f for f in files if
1155+
os.path.isfile(direc + '/' + f) and f.endswith(".zip") and f.startswith('datalink_output')]
1156+
1157+
assert len(files) == 1
1158+
datalink_output = files[0]
1159+
11511160
assert params_dict == {
11521161
"VALID_DATA": "true",
11531162
"ID": "1,2,3,4",
@@ -1156,7 +1165,7 @@ def load_data_monkeypatched(self, params_dict, output_file, verbose):
11561165
"DATA_STRUCTURE": "INDIVIDUAL",
11571166
"LINKING_PARAMETER": linking_param,
11581167
"USE_ZIP_ALWAYS": "true", }
1159-
assert output_file == os.getcwd() + '/' + 'datalink_output.zip'
1168+
assert output_file == os.getcwd() + '/' + datalink_output
11601169
assert verbose is True
11611170

11621171
monkeypatch.setattr(TapPlus, "load_data", load_data_monkeypatched)

0 commit comments

Comments
 (0)