Skip to content

Commit

Permalink
all tests OK
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelthle committed Feb 12, 2025
1 parent 4bcb82b commit ad1987e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/integration/test_web_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit ad1987e

Please sign in to comment.