Skip to content

Commit

Permalink
bump and use v1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelthle committed Sep 25, 2024
1 parent fe17ecf commit 8fcff3b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion antarest/launcher/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def run_study(
job_uuid = self._generate_new_id()
logger.info(f"New study launch (study={study_uuid}, job_id={job_uuid})")
study_info = self.study_service.get_study_information(uuid=study_uuid, params=params)
solver_version = study_version or study_info.version.__str__()
solver_version = study_version or study_info.version.__format__(format_spec="ddd")

self._assert_launcher_is_initialized(launcher)
assert_permission(
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.5
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
6 changes: 3 additions & 3 deletions tests/storage/business/test_study_version_upgrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ def test_fails_because_of_versions_asked(tmp_path: Path):
with zipfile.ZipFile(path_study) as zip_output:
zip_output.extractall(path=study_dir)
# Try to upgrade with an unknown version
with pytest.raises(InvalidUpgrade, match="Cannot downgrade from version '720' to '600'"):
with pytest.raises(InvalidUpgrade, match="Cannot downgrade from version '7.2' to '6'"):
StudyUpgrader(study_dir, "600").upgrade()
# Try to upgrade with the current version
with pytest.raises(InvalidUpgrade, match="Your study is already in version '720'"):
with pytest.raises(InvalidUpgrade, match="Your study is already in version '7.2'"):
StudyUpgrader(study_dir, "720").upgrade()
# Try to upgrade with an old version
with pytest.raises(
InvalidUpgrade,
match="Cannot downgrade from version '720' to '710'",
match="Cannot downgrade from version '7.2' to '7.1'",
):
StudyUpgrader(study_dir, "710").upgrade()
# Try to upgrade with a version that does not exist
Expand Down

0 comments on commit 8fcff3b

Please sign in to comment.