Changed build_test_setup to always create a test instance, so that the __init__ method can run any prep_only work. I also moved the fix_pypeit_file_directory into the PypeItReduceTestinit method so that it will be included in this.
The call to file_pypeit_file_directory will raise an exception if a file is missing. To preserve the existing missing files functionality I reorganized it so that it's done in build_test_setup, allowing the exception to be caught and the file added to the list.
I also updated the unit tests to check for the .pypeit files being copied in the --prep_only test.
Changed
build_test_setup
to always create a test instance, so that the__init__
method can run any prep_only work. I also moved thefix_pypeit_file_directory
into thePypeItReduceTest
init
method so that it will be included in this.The call to
file_pypeit_file_directory
will raise an exception if a file is missing. To preserve the existing missing files functionality I reorganized it so that it's done inbuild_test_setup
, allowing the exception to be caught and the file added to the list.I also updated the unit tests to check for the .pypeit files being copied in the --prep_only test.