Skip to content

Commit

Permalink
Fix calibrated file path name
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrous committed Feb 5, 2024
1 parent 540307c commit 63e2240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lambda_function/tests/test_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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}"

Expand Down

0 comments on commit 63e2240

Please sign in to comment.