Skip to content

Commit

Permalink
all UTs ok
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelthle committed Mar 6, 2025
1 parent 3e17730 commit 0100fcd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
BindingConstraintProperties,
BindingConstraintPropertiesUpdate,
)
from antares.craft.model.commons import filtering_option, FilterOption
from antares.craft.model.commons import FilterOption, filtering_option
from antares.craft.service.local_services.models.base_model import LocalBaseModel
from pydantic import Field

Expand Down
5 changes: 3 additions & 2 deletions tests/antares/services/local_services/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
ConstraintTerm,
LinkData,
)
from antares.craft.model.commons import FILTER_VALUES
from antares.craft.model.hydro import HydroProperties, HydroPropertiesUpdate
from antares.craft.model.renewable import RenewableClusterGroup, RenewableClusterProperties, TimeSeriesInterpretation
from antares.craft.model.st_storage import STStorageGroup, STStorageProperties
Expand Down Expand Up @@ -281,7 +282,7 @@ def default_constraint_properties() -> BindingConstraintProperties:
time_step=BindingConstraintFrequency.HOURLY,
operator=BindingConstraintOperator.LESS,
comments="",
filter_year_by_year="hourly",
filter_synthesis="hourly",
filter_year_by_year=FILTER_VALUES,
filter_synthesis=FILTER_VALUES,
group="default",
)
20 changes: 10 additions & 10 deletions tests/antares/services/local_services/test_study.py
Original file line number Diff line number Diff line change
Expand Up @@ -1199,8 +1199,8 @@ def test_constraints_ini_have_correct_default_content(
type = hourly
operator = less
comments =
filter-year-by-year = hourly
filter-synthesis = hourly
filter-year-by-year = annual, daily, hourly, monthly, weekly
filter-synthesis = annual, daily, hourly, monthly, weekly
group = default
"""
Expand All @@ -1224,7 +1224,7 @@ def test_constraints_and_ini_have_custom_properties(self, local_study_with_const
time_step=BindingConstraintFrequency.WEEKLY,
operator=BindingConstraintOperator.BOTH,
comments="test comment",
filter_year_by_year="yearly",
filter_year_by_year="annual",
filter_synthesis="monthly",
group="test group",
)
Expand All @@ -1235,8 +1235,8 @@ def test_constraints_and_ini_have_custom_properties(self, local_study_with_const
type = hourly
operator = less
comments =
filter-year-by-year = hourly
filter-synthesis = hourly
filter-year-by-year = annual, daily, hourly, monthly, weekly
filter-synthesis = annual, daily, hourly, monthly, weekly
group = default
[1]
Expand All @@ -1246,7 +1246,7 @@ def test_constraints_and_ini_have_custom_properties(self, local_study_with_const
type = weekly
operator = both
comments = test comment
filter-year-by-year = yearly
filter-year-by-year = annual
filter-synthesis = monthly
group = test group
Expand Down Expand Up @@ -1280,8 +1280,8 @@ def test_constraint_term_and_ini_have_correct_defaults(self, local_study_with_co
type = hourly
operator = less
comments =
filter-year-by-year = hourly
filter-synthesis = hourly
filter-year-by-year = annual, daily, hourly, monthly, weekly
filter-synthesis = annual, daily, hourly, monthly, weekly
group = default
at%fr = 1
Expand All @@ -1305,8 +1305,8 @@ def test_constraint_term_with_offset_and_ini_have_correct_values(
type = hourly
operator = less
comments =
filter-year-by-year = hourly
filter-synthesis = hourly
filter-year-by-year = annual, daily, hourly, monthly, weekly
filter-synthesis = annual, daily, hourly, monthly, weekly
group = default
at%fr = 1%1
Expand Down

0 comments on commit 0100fcd

Please sign in to comment.