Skip to content

Commit

Permalink
solar/prepro/<area_id>/k.txt has correct default content
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigurd-Borge committed Sep 9, 2024
1 parent 26df2bc commit a5e92ba
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/antares/services/local_services/test_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,3 +879,14 @@ def test_k_txt_exists(self, area_fr, fr_solar):
assert expected_file_path.exists()
assert expected_file_path.is_file()
assert fr_solar.k.local_file.file_path == expected_file_path

def test_k_txt_is_empty_by_default(self, area_fr, fr_solar):
# Given
expected_file_contents = """"""

# When
with fr_solar.k.local_file.file_path.open("r") as fr_solar_file:
actual_file_contents = fr_solar_file.read()

# Then
assert actual_file_contents == expected_file_contents

0 comments on commit a5e92ba

Please sign in to comment.