Skip to content

Commit 34ab7d2

Browse files
committed
fix incorrect directory switching
1 parent 5ba3ce8 commit 34ab7d2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

test/test_bench_compare.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def test_compare_UQ_and_confidence(stub_plots_and_io, cfg, monkeypatch):
209209
assert base["M1"]["UQ"]["confidence_scores"] == 0.42
210210

211211

212-
def test_tabular_comparison_creates_files(tmp_path, stub_plots_and_io):
212+
def test_tabular_comparison_creates_files(tmp_path, stub_plots_and_io, monkeypatch):
213213
metrics = {
214214
"M1": {
215215
"accuracy": {
@@ -241,12 +241,11 @@ def test_tabular_comparison_creates_files(tmp_path, stub_plots_and_io):
241241
"extrapolation": {"enabled": False},
242242
"sparse": {"enabled": False},
243243
"batch_scaling": {"enabled": False},
244-
"uncertainty": {"enabled": False},
245244
"verbose": False,
246245
}
247246

248247
# run inside tmp_path
249-
os.chdir(tmp_path)
248+
monkeypatch.chdir(tmp_path)
250249
# manually create results/<study_id>
251250
os.makedirs(tmp_path / "results" / cfg["training_id"], exist_ok=True)
252251

0 commit comments

Comments
 (0)