diff --git a/tests/variantstudy/model/command/test_create_area.py b/tests/variantstudy/model/command/test_create_area.py index 0bb8c104c7..adf5024c16 100644 --- a/tests/variantstudy/model/command/test_create_area.py +++ b/tests/variantstudy/model/command/test_create_area.py @@ -98,7 +98,7 @@ def test_apply( assert (study_path / "input" / "hydro" / "allocation" / f"{area_id}.ini").exists() allocation = configparser.ConfigParser() allocation.read(study_path / "input" / "hydro" / "allocation" / f"{area_id}.ini") - assert int(allocation["[allocation"][area_id]) == 1 + assert int(allocation["[allocation]"][area_id]) == 1 # Capacity assert (study_path / "input" / "hydro" / "common" / "capacity" / f"maxpower_{area_id}.txt.link").exists()