pypeit / PypeIt-development-suite

8 stars 11 forks source link

Change --pre_only to copy over .pypeit files and and fix directory #137

Closed badpandabear closed 3 years ago

badpandabear commented 3 years ago

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 PypeItReduceTest 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 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.