Skip to content

Commit

Permalink
validate are.st_storage method
Browse files Browse the repository at this point in the history
  • Loading branch information
killian-scalian committed Dec 13, 2024
1 parent 94a8d4f commit f8c87fd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/antares/services/local_services/test_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -1429,3 +1429,16 @@ def test_read_links_local(self, local_study_w_links):
assert link.properties.asset_type.value == "ac"
assert isinstance(link.properties.filter_year_by_year, set)
assert isinstance(link.properties.filter_synthesis, set)

class TestReadSTstorage:
def test_read_storage_local(self, local_study_w_thermal):
# TODO not finished at all, just here to validate area.read_st_storage
study_path = local_study_w_thermal.service.config.study_path
local_study_object = read_study_local(study_path)
areas = local_study_object.read_areas()

for area in areas:
with pytest.raises(NotImplementedError):
storage_list = area.read_st_storages()


0 comments on commit f8c87fd

Please sign in to comment.