Skip to content

Commit 1c9a269

Browse files
committed
Fix broken tests
1 parent a554379 commit 1c9a269

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tests/test_fnr_cop.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
OUTPUT_DIR = f'{CURRENT_DIR}/output'
99
INPUT_CSV = f'{CURRENT_DIR}/cal.csv'
1010

11+
DO_CLEANUP = True
12+
1113

1214
def _cleanup():
1315
print(f'Cleaning up {OUTPUT_DIR}')
@@ -29,9 +31,13 @@ def test_prediction_dataset():
2931
calpd = PredictionDataset(predictions_csv=INPUT_CSV,
3032
dataset_name='my_cal_data')
3133

32-
calpd.run_reports(OUTPUT_DIR)
34+
calpd.create_reports_dir(OUTPUT_DIR)
35+
calpd.visualize_prediction_heatmap()
36+
calpd.visualize_prediction_stripplot()
37+
calpd.visualize_prediction_stripplot()
3338
finally:
34-
_cleanup()
39+
if DO_CLEANUP:
40+
_cleanup()
3541

3642

3743
def test_fnr_cop():
@@ -47,5 +53,5 @@ def test_fnr_cop():
4753
trial = mcp.do_validation_trial(n_runs=10)
4854
trial.run_reports(OUTPUT_DIR)
4955
finally:
50-
print("hi")
51-
#_cleanup()
56+
if DO_CLEANUP:
57+
_cleanup()

0 commit comments

Comments
 (0)