Skip to content

Commit

Permalink
make test work
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelthle committed Sep 25, 2024
1 parent 8fcff3b commit 8773381
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion antarest/study/business/optimization_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def get_field_values(self, study: Study) -> OptimizationFormFields:
def get_value(field_info: FieldInfo) -> Any:
path = field_info["path"]
study_ver = file_study.config.version
start_ver = cast(int, field_info.get("start_version", -1))
start_ver = cast(int, field_info.get("start_version", 0))
target_name = path.split("/")[-1]
is_in_version = start_ver <= study_ver

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Antares-Launcher~=1.3.2
antares-study-version~=1.0.6
antares-study-version==1.0.6
antares-timeseries-generation~=0.1.5

# When you install `fastapi[all]`, you get FastAPI along with additional dependencies:
Expand Down
2 changes: 1 addition & 1 deletion tests/storage/business/test_study_version_upgrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def assert_settings_are_updated(tmp_path: Path, old_values: List[str]) -> None:
assert adequacy_patch["threshold-initiate-curtailment-sharing-rule"] == 0.0
assert adequacy_patch["threshold-display-local-matching-rule-violations"] == 0.0
assert adequacy_patch["threshold-csr-variable-bounds-relaxation"] == 3
assert adequacy_patch["enable-first-step"]
assert not adequacy_patch["enable-first-step"]


def get_old_settings_values(tmp_path: Path) -> List[str]:
Expand Down

0 comments on commit 8773381

Please sign in to comment.