Skip to content

Commit

Permalink
fix tets
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelthle committed Feb 5, 2025
1 parent f01eac3 commit aadadde
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/antares/services/api_services/test_study_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@ def test_import_study_success(self, tmp_path):
output_url = f"{url}/outputs"
constraints_url = f"{base_url}/studies/{self.study_id}/bindingconstraints"
config_urls = re.compile(f"{base_url}/studies/{self.study_id}/config/.*")
ts_settings_url = f"https://antares.com/api/v1/studies/{self.study_id}/timeseries/config"

url_import = f"{base_url}/studies/_import"
url_move = f"{base_url}/studies/{self.study_id}/move?folder_dest={new_path}"
Expand All @@ -753,15 +754,13 @@ def test_import_study_success(self, tmp_path):

mocker.get(url, json=json_study)
mocker.get(config_urls, json={})
mocker.get(ts_settings_url, json={"thermal": {"number": 1}}, status_code=200)
mocker.get(area_url, json={})
mocker.get(area_props_url, json={})
mocker.get(renewable_url, json=[])
mocker.get(thermal_url, json=[])
mocker.get(storage_url, json=[])
mocker.get(
output_url,
json=[],
)
mocker.get(output_url, json=[])
mocker.get(constraints_url, json=[])

mocker.put(url_move)
Expand Down

0 comments on commit aadadde

Please sign in to comment.