iact_estimator.tests.test_io

Tests for the io module.

Functions

test_read_yaml(tmp_path)

Test reading YAML configuration file.

test_read_yaml_nonexistent_file()

Test reading a non-existent YAML file raises ValueError.

test_read_yaml_with_pathlib(tmp_path)

Test reading YAML file with pathlib.Path object.

test_load_ebl(sample_ebl_file)

Test loading EBL data file.

test_load_ebl_nonexistent_file()

Test loading non-existent EBL file raises ValueError.

test_load_performance_ecsv(tmp_path)

Test loading performance data from ECSV file.

test_save_fits_hdu(tmp_path)

Test saving FITS HDU to file.

test_save_fits_hdu_overwrite(tmp_path)

Test saving FITS HDU with overwrite option.

test_save_fits_hdu_invalid_directory()

Test saving FITS HDU to non-existent directory raises ValueError.

Module Contents

iact_estimator.tests.test_io.test_read_yaml(tmp_path)

Test reading YAML configuration file.

iact_estimator.tests.test_io.test_read_yaml_nonexistent_file()

Test reading a non-existent YAML file raises ValueError.

iact_estimator.tests.test_io.test_read_yaml_with_pathlib(tmp_path)

Test reading YAML file with pathlib.Path object.

iact_estimator.tests.test_io.test_load_ebl(sample_ebl_file)

Test loading EBL data file.

iact_estimator.tests.test_io.test_load_ebl_nonexistent_file()

Test loading non-existent EBL file raises ValueError.

iact_estimator.tests.test_io.test_load_performance_ecsv(tmp_path)

Test loading performance data from ECSV file.

iact_estimator.tests.test_io.test_save_fits_hdu(tmp_path)

Test saving FITS HDU to file.

iact_estimator.tests.test_io.test_save_fits_hdu_overwrite(tmp_path)

Test saving FITS HDU with overwrite option.

iact_estimator.tests.test_io.test_save_fits_hdu_invalid_directory()

Test saving FITS HDU to non-existent directory raises ValueError.