From 63e2240bdadfdca984c7f1836c843cb7f98c9e55 Mon Sep 17 00:00:00 2001 From: Damian Barrous-Dume Date: Mon, 5 Feb 2024 14:43:15 +0000 Subject: [PATCH] Fix calibrated file path name --- lambda_function/tests/test_processor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lambda_function/tests/test_processor.py b/lambda_function/tests/test_processor.py index 60d9955..01e7c7f 100755 --- a/lambda_function/tests/test_processor.py +++ b/lambda_function/tests/test_processor.py @@ -41,7 +41,7 @@ def test_file_calibrate(): calibrated_file_path = FileProcessor._calibrate_file(intrument, file_path) # Verify - assert calibrated_file_path == "hermes_eea_l1_20230211T000000_v1.0.0.cdf" + assert calibrated_file_path == "hermes_eea_l1_20000101T170901_v1.0.0.cdf" # Cleanup os.remove(Path(parent_dir, calibrated_file_path)) @@ -65,7 +65,7 @@ def test_file_calibrate_failure(): def test_handle_event(s3): filename = "hermes_EEA_l0_2023042-000000_v0.bin" parent_dir = "lambda_function/tests/test_data" - calibrated_file_path = "hermes_eea_l1_20230211T000000_v1.0.0.cdf" + calibrated_file_path = "hermes_eea_l1_20000101T170901_v1.0.0.cdf" # Set the absolute path using file_path as string os.environ["SDC_AWS_FILE_PATH"] = f"lambda_function/tests/test_data/{filename}"