From ad1987e7863aa104e3cea2aa75b0dd6bb1bbe977 Mon Sep 17 00:00:00 2001 From: belthlemar Date: Wed, 12 Feb 2025 16:38:07 +0100 Subject: [PATCH] all tests OK --- tests/integration/test_web_client.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/integration/test_web_client.py b/tests/integration/test_web_client.py index ae15c425..493035d0 100644 --- a/tests/integration/test_web_client.py +++ b/tests/integration/test_web_client.py @@ -52,7 +52,12 @@ from antares.craft.model.settings.optimization import ExportMPS, OptimizationParametersUpdate from antares.craft.model.settings.study_settings import PlaylistParameters, StudySettings, StudySettingsUpdate from antares.craft.model.simulation import AntaresSimulationParameters, Job, JobStatus -from antares.craft.model.st_storage import STStorageGroup, STStorageMatrixName, STStorageProperties +from antares.craft.model.st_storage import ( + STStorageGroup, + STStorageMatrixName, + STStorageProperties, + STStoragePropertiesUpdate, +) from antares.craft.model.study import create_study_api, create_variant_api, import_study_api, read_study_api from antares.craft.model.thermal import ThermalClusterGroup, ThermalClusterProperties, ThermalClusterPropertiesUpdate @@ -442,10 +447,10 @@ def test_creation_lifecycle(self, antares_web: AntaresWebDesktop, tmp_path): assert renewable_onshore.properties.ts_interpretation == TimeSeriesInterpretation.POWER_GENERATION # tests short term storage properties update - new_props = STStorageProperties() - new_props.group = STStorageGroup.PONDAGE + new_props = STStoragePropertiesUpdate(group=STStorageGroup.PONDAGE) battery_fr.update_properties(new_props) assert battery_fr.properties.group == STStorageGroup.PONDAGE + assert battery_fr.properties.reservoir_capacity == 0.5 # Checks old value wasn't modified # tests constraint properties update new_props = BindingConstraintProperties()