diff --git a/src/everest/config_file_loader.py b/src/everest/config_file_loader.py index 0c365c1d396..023780806d9 100644 --- a/src/everest/config_file_loader.py +++ b/src/everest/config_file_loader.py @@ -59,13 +59,13 @@ def _get_definitions(configuration, configpath): for key, val in ERT_CONFIG_TEMPLATES.items(): if key in defs: - logging.warn( + logging.warning( "Internal key {k} specified by user as {u}. " "Overriding as {v}".format(k=key, u=defs[key], v=val) ) defs[key] = f"<{val}>" # ert uses as format else: - logging.warn("Empty configuration file provided!") + logging.warning("Empty configuration file provided!") # If user didn't define a config path, we can insert it here. defs["configpath"] = defs.get("configpath", configpath) diff --git a/tests/everest/test_everest_output.py b/tests/everest/test_everest_output.py index fa3025fdec5..5287251aca4 100644 --- a/tests/everest/test_everest_output.py +++ b/tests/everest/test_everest_output.py @@ -43,7 +43,7 @@ def test_that_one_experiment_creates_one_ensemble_per_batch( @pytest.mark.integration_test -def test_everest_output(copy_mocked_test_data_to_tmp): +async def test_everest_output(copy_mocked_test_data_to_tmp): config_folder = os.getcwd() config = EverestConfig.load_file("mocked_test_case.yml") everest_output_dir = config.output_dir @@ -75,7 +75,7 @@ def useless_cb(*args, **kwargs): assert "storage" not in initial_folders assert DETACHED_NODE_DIR not in initial_folders makedirs_if_needed(config.output_dir, roll_if_exists=True) - start_server(config) + await start_server(config) (path, folders, files) = next(os.walk(config_folder)) # Check we are looking at the config folder @@ -92,7 +92,7 @@ def useless_cb(*args, **kwargs): # Check storage folder no longer created in the config folder assert "storage" not in final_folders makedirs_if_needed(config.output_dir, roll_if_exists=True) - start_server(config) + await start_server(config) final_files = os.listdir(config_folder) # verify two everest_output dirs present