Skip to content

Commit

Permalink
solar/prepro/<area_id>/translation.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 4b29224 commit b3de368
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 @@ -902,3 +902,14 @@ def test_translation_txt_exists(self, area_fr, fr_solar):
assert expected_file_path.exists()
assert expected_file_path.is_file()
assert fr_solar.translation.local_file.file_path == expected_file_path

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

# When
with fr_solar.translation.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 b3de368

Please sign in to comment.