Skip to content

Commit 74da853

Browse files
committed
Make download pred results tests more robust
1 parent f73d3bf commit 74da853

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cesium_app/tests/frontend/test_predict.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def test_download_prediction_csv_class(driver, project, dataset, featureset,
160160
driver.get('/')
161161
_click_download(project.id, driver)
162162
matching_downloads_paths = glob.glob(f'{cfg["paths:downloads_folder"]}/'
163-
'cesium_prediction_results*.csv')
163+
'cesium_prediction_results*')
164164
assert len(matching_downloads_paths) == 1
165165
try:
166166
npt.assert_equal(
@@ -180,7 +180,7 @@ def test_download_prediction_csv_class_unlabeled(driver, project, unlabeled_pred
180180
driver.get('/')
181181
_click_download(project.id, driver)
182182
matching_downloads_paths = glob.glob(f'{cfg["paths:downloads_folder"]}/'
183-
'cesium_prediction_results*.csv')
183+
'cesium_prediction_results*')
184184
assert len(matching_downloads_paths) == 1
185185
try:
186186
result = np.genfromtxt(matching_downloads_paths[0], dtype='str')
@@ -196,7 +196,7 @@ def test_download_prediction_csv_class_prob(driver, project, dataset,
196196
driver.get('/')
197197
_click_download(project.id, driver)
198198
matching_downloads_paths = glob.glob(f'{cfg["paths:downloads_folder"]}/'
199-
'cesium_prediction_results*.csv')
199+
'cesium_prediction_results*')
200200
assert len(matching_downloads_paths) == 1
201201
try:
202202
result = pd.read_csv(matching_downloads_paths[0])
@@ -218,7 +218,7 @@ def test_download_prediction_csv_regr(driver, project, dataset, featureset,
218218
driver.get('/')
219219
_click_download(project.id, driver)
220220
matching_downloads_paths = glob.glob(f'{cfg["paths:downloads_folder"]}/'
221-
'cesium_prediction_results*.csv')
221+
'cesium_prediction_results*')
222222
assert len(matching_downloads_paths) == 1
223223
try:
224224
results = np.genfromtxt(matching_downloads_paths[0],

0 commit comments

Comments
 (0)