Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Anis SMAIL committed Jan 29, 2025
1 parent e06ed1c commit aa633a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion antarest/study/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,7 @@ def sync_studies_on_disk(
study_paths = [study.path for study in all_studies if study.missing is None]
missing_studies = {study.path: study for study in all_studies if study.missing is not None}
for folder in folders:
study_path = str(folder.path.as_posix())
study_path = str(folder.path)
if study_path not in study_paths:
try:
if study_path not in missing_studies.keys():
Expand Down
3 changes: 1 addition & 2 deletions tests/storage/business/test_raw_study_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,7 @@ def test_copy_study(
)
md = study_service.copy(src_md, "dst_name", groups)
md_id = md.id
tmp_path_as_posix = tmp_path.as_posix()
assert str(md.path) == f"{tmp_path_as_posix}{os.sep}{md_id}"
assert str(md.path) == f"{tmp_path}{os.sep}{md_id}"
assert md.public_mode == PublicMode.NONE
assert md.groups == groups
study.get.assert_called_once_with(["study"])
Expand Down

0 comments on commit aa633a8

Please sign in to comment.