From a5e92ba9bfd1a0e87620f087e148c6b583378749 Mon Sep 17 00:00:00 2001 From: Sigurd Borge Date: Mon, 9 Sep 2024 12:07:23 +0200 Subject: [PATCH] solar/prepro//k.txt has correct default content --- tests/antares/services/local_services/test_area.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/antares/services/local_services/test_area.py b/tests/antares/services/local_services/test_area.py index fe375745..018c3e9b 100644 --- a/tests/antares/services/local_services/test_area.py +++ b/tests/antares/services/local_services/test_area.py @@ -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