diff --git a/tests/jobs/localisation/test_integration.py b/tests/jobs/localisation/test_integration.py index b18289f3b..e7935c250 100644 --- a/tests/jobs/localisation/test_integration.py +++ b/tests/jobs/localisation/test_integration.py @@ -56,7 +56,10 @@ def test_localisation(snake_oil_facade, obs_group_add, param_group_add, snapshot snake_oil_facade.run_ertscript( LocalisationConfigJob, storage, - storage.get_ensemble_by_name("default"), + storage.create_experiment().create_ensemble( + name="default", ensemble_size=snake_oil_facade.get_ensemble_size() + ), + # storage.get_ensemble_by_name("default"), "local_config.yaml", ) snapshot.assert_match( @@ -197,7 +200,15 @@ def test_localisation_surf_const(): with open("local_config.yaml", "w", encoding="utf-8") as fout: yaml.dump(config, fout) - ert.run_ertscript(LocalisationConfigJob, "local_config.yaml") + with open_storage(ert.enspath, "w") as storage: + ert.run_ertscript( + LocalisationConfigJob, + storage, + storage.create_experiment().create_ensemble( + name="default", ensemble_size=ert.get_ensemble_size() + ), + "local_config.yaml", + ) # This test and the test test_localisation_field2 are similar,