From 34c6351df7b48c52ea14a0ab9de7e9234d0cb18c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Eide?= Date: Sun, 25 Feb 2024 22:14:09 +0100 Subject: [PATCH] Rename snapshot folders --- .../{0-True => 0-misfit_preprocess0}/update_log | 0 .../{0-False => 0-misfit_preprocess1}/update_log | 0 tests/unit_tests/analysis/test_es_update.py | 5 ----- 3 files changed, 5 deletions(-) rename tests/unit_tests/analysis/snapshots/test_es_update/test_update_report/{0-True => 0-misfit_preprocess0}/update_log (100%) rename tests/unit_tests/analysis/snapshots/test_es_update/test_update_report/{0-False => 0-misfit_preprocess1}/update_log (100%) diff --git a/tests/unit_tests/analysis/snapshots/test_es_update/test_update_report/0-True/update_log b/tests/unit_tests/analysis/snapshots/test_es_update/test_update_report/0-misfit_preprocess0/update_log similarity index 100% rename from tests/unit_tests/analysis/snapshots/test_es_update/test_update_report/0-True/update_log rename to tests/unit_tests/analysis/snapshots/test_es_update/test_update_report/0-misfit_preprocess0/update_log diff --git a/tests/unit_tests/analysis/snapshots/test_es_update/test_update_report/0-False/update_log b/tests/unit_tests/analysis/snapshots/test_es_update/test_update_report/0-misfit_preprocess1/update_log similarity index 100% rename from tests/unit_tests/analysis/snapshots/test_es_update/test_update_report/0-False/update_log rename to tests/unit_tests/analysis/snapshots/test_es_update/test_update_report/0-misfit_preprocess1/update_log diff --git a/tests/unit_tests/analysis/test_es_update.py b/tests/unit_tests/analysis/test_es_update.py index 3e2e8e8348f..c005ecedad0 100644 --- a/tests/unit_tests/analysis/test_es_update.py +++ b/tests/unit_tests/analysis/test_es_update.py @@ -99,11 +99,6 @@ def test_update_report( ) log_file = Path(ert_config.analysis_config.log_path) / "id.txt" remove_timestamp_from_logfile(log_file) - snapshot.snapshot_dir = ( - str(snapshot.snapshot_dir).replace("misfit_preprocess0", "True") - if misfit_preprocess - else str(snapshot.snapshot_dir).replace("misfit_preprocess1", "False") - ) snapshot.assert_match(log_file.read_text("utf-8"), "update_log") json = (prior_ens.experiment._path / "update_log_id.json").read_text(